@motionscript/core 0.1.0-alpha.9 → 0.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1064) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/assets/asset-index.d.ts +1 -8
  3. package/dist/assets/asset-index.d.ts.map +1 -1
  4. package/dist/assets/asset-index.js +1 -8
  5. package/dist/assets/asset-index.js.map +1 -1
  6. package/dist/assets/catalog.d.ts +10 -72
  7. package/dist/assets/catalog.d.ts.map +1 -1
  8. package/dist/assets/catalog.js +3 -29
  9. package/dist/assets/catalog.js.map +1 -1
  10. package/dist/assets/errors.d.ts +8 -20
  11. package/dist/assets/errors.d.ts.map +1 -1
  12. package/dist/assets/errors.js +8 -20
  13. package/dist/assets/errors.js.map +1 -1
  14. package/dist/assets/index.d.ts.map +1 -1
  15. package/dist/assets/index.js.map +1 -1
  16. package/dist/assets/manager.d.ts +9 -51
  17. package/dist/assets/manager.d.ts.map +1 -1
  18. package/dist/assets/manager.js +13 -78
  19. package/dist/assets/manager.js.map +1 -1
  20. package/dist/assets/record.d.ts +2 -18
  21. package/dist/assets/record.d.ts.map +1 -1
  22. package/dist/assets/record.js.map +1 -1
  23. package/dist/assets/scope.d.ts +3 -18
  24. package/dist/assets/scope.d.ts.map +1 -1
  25. package/dist/assets/scope.js +2 -11
  26. package/dist/assets/scope.js.map +1 -1
  27. package/dist/attributes/audio/effects/chain.d.ts +2 -12
  28. package/dist/attributes/audio/effects/chain.d.ts.map +1 -1
  29. package/dist/attributes/audio/effects/chain.js +1 -7
  30. package/dist/attributes/audio/effects/chain.js.map +1 -1
  31. package/dist/attributes/audio/effects/registry.d.ts +3 -18
  32. package/dist/attributes/audio/effects/registry.d.ts.map +1 -1
  33. package/dist/attributes/audio/effects/registry.js +4 -23
  34. package/dist/attributes/audio/effects/registry.js.map +1 -1
  35. package/dist/attributes/audio/ramp.d.ts +5 -38
  36. package/dist/attributes/audio/ramp.d.ts.map +1 -1
  37. package/dist/attributes/audio/ramp.js +3 -28
  38. package/dist/attributes/audio/ramp.js.map +1 -1
  39. package/dist/attributes/audio/request.d.ts +10 -80
  40. package/dist/attributes/audio/request.d.ts.map +1 -1
  41. package/dist/attributes/audio/request.js +1 -4
  42. package/dist/attributes/audio/request.js.map +1 -1
  43. package/dist/attributes/audio/schedule.d.ts +2 -12
  44. package/dist/attributes/audio/schedule.d.ts.map +1 -1
  45. package/dist/attributes/audio/schedule.js +2 -11
  46. package/dist/attributes/audio/schedule.js.map +1 -1
  47. package/dist/attributes/audio/sound.d.ts +2 -26
  48. package/dist/attributes/audio/sound.d.ts.map +1 -1
  49. package/dist/attributes/audio/sound.js +1 -9
  50. package/dist/attributes/audio/sound.js.map +1 -1
  51. package/dist/attributes/audio/transition.d.ts +1 -8
  52. package/dist/attributes/audio/transition.d.ts.map +1 -1
  53. package/dist/attributes/audio/transition.js.map +1 -1
  54. package/dist/attributes/layout/alignment.d.ts +6 -38
  55. package/dist/attributes/layout/alignment.d.ts.map +1 -1
  56. package/dist/attributes/layout/alignment.js.map +1 -1
  57. package/dist/attributes/layout/insets.d.ts +2 -27
  58. package/dist/attributes/layout/insets.d.ts.map +1 -1
  59. package/dist/attributes/layout/insets.js.map +1 -1
  60. package/dist/attributes/layout/matrix2d.d.ts +29 -114
  61. package/dist/attributes/layout/matrix2d.d.ts.map +1 -1
  62. package/dist/attributes/layout/matrix2d.js +26 -110
  63. package/dist/attributes/layout/matrix2d.js.map +1 -1
  64. package/dist/attributes/layout/size.d.ts +3 -25
  65. package/dist/attributes/layout/size.d.ts.map +1 -1
  66. package/dist/attributes/layout/size.js +2 -18
  67. package/dist/attributes/layout/size.js.map +1 -1
  68. package/dist/attributes/layout/space3d.d.ts +16 -79
  69. package/dist/attributes/layout/space3d.d.ts.map +1 -1
  70. package/dist/attributes/layout/space3d.js +17 -81
  71. package/dist/attributes/layout/space3d.js.map +1 -1
  72. package/dist/attributes/layout/transform3d.d.ts +2 -23
  73. package/dist/attributes/layout/transform3d.d.ts.map +1 -1
  74. package/dist/attributes/layout/transform3d.js +1 -7
  75. package/dist/attributes/layout/transform3d.js.map +1 -1
  76. package/dist/attributes/layout/world-transform.d.ts +2 -16
  77. package/dist/attributes/layout/world-transform.d.ts.map +1 -1
  78. package/dist/attributes/layout/world-transform.js.map +1 -1
  79. package/dist/attributes/properties/decorator.d.ts +13 -73
  80. package/dist/attributes/properties/decorator.d.ts.map +1 -1
  81. package/dist/attributes/properties/decorator.js +9 -40
  82. package/dist/attributes/properties/decorator.js.map +1 -1
  83. package/dist/attributes/properties/typed.d.ts +6 -45
  84. package/dist/attributes/properties/typed.d.ts.map +1 -1
  85. package/dist/attributes/properties/typed.js +6 -37
  86. package/dist/attributes/properties/typed.js.map +1 -1
  87. package/dist/attributes/render3d/orbit.d.ts +11 -83
  88. package/dist/attributes/render3d/orbit.d.ts.map +1 -1
  89. package/dist/attributes/render3d/orbit.js +10 -73
  90. package/dist/attributes/render3d/orbit.js.map +1 -1
  91. package/dist/attributes/shape/corners/corner-radius.d.ts +1 -6
  92. package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
  93. package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
  94. package/dist/attributes/shape/corners/corner-style.d.ts +4 -25
  95. package/dist/attributes/shape/corners/corner-style.d.ts.map +1 -1
  96. package/dist/attributes/shape/corners/corner-style.js +2 -12
  97. package/dist/attributes/shape/corners/corner-style.js.map +1 -1
  98. package/dist/attributes/shape/corners/corners.d.ts +2 -21
  99. package/dist/attributes/shape/corners/corners.d.ts.map +1 -1
  100. package/dist/attributes/shape/corners/corners.js +2 -12
  101. package/dist/attributes/shape/corners/corners.js.map +1 -1
  102. package/dist/attributes/shape/effects/backdrop.d.ts +2 -18
  103. package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
  104. package/dist/attributes/shape/effects/backdrop.js +3 -26
  105. package/dist/attributes/shape/effects/backdrop.js.map +1 -1
  106. package/dist/attributes/shape/effects/chain.d.ts +36 -328
  107. package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
  108. package/dist/attributes/shape/effects/chain.js +24 -242
  109. package/dist/attributes/shape/effects/chain.js.map +1 -1
  110. package/dist/attributes/shape/effects/effect-data.d.ts +19 -127
  111. package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -1
  112. package/dist/attributes/shape/effects/effect-data.js +6 -33
  113. package/dist/attributes/shape/effects/effect-data.js.map +1 -1
  114. package/dist/attributes/shape/effects/implementations/ascii.d.ts +6 -26
  115. package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
  116. package/dist/attributes/shape/effects/implementations/ascii.js +0 -3
  117. package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
  118. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +2 -21
  119. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
  120. package/dist/attributes/shape/effects/implementations/bit-crush.js +0 -1
  121. package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
  122. package/dist/attributes/shape/effects/implementations/block-displace.d.ts +1 -14
  123. package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
  124. package/dist/attributes/shape/effects/implementations/block-displace.js +0 -1
  125. package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
  126. package/dist/attributes/shape/effects/implementations/bloom.d.ts +0 -1
  127. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
  128. package/dist/attributes/shape/effects/implementations/bloom.js +0 -1
  129. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
  130. package/dist/attributes/shape/effects/implementations/blur.d.ts +0 -1
  131. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
  132. package/dist/attributes/shape/effects/implementations/blur.js +0 -1
  133. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
  134. package/dist/attributes/shape/effects/implementations/bulge.d.ts +0 -1
  135. package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
  136. package/dist/attributes/shape/effects/implementations/bulge.js +0 -1
  137. package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
  138. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +0 -1
  139. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
  140. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +0 -1
  141. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
  142. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +1 -12
  143. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
  144. package/dist/attributes/shape/effects/implementations/color-adjustment.js +0 -1
  145. package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
  146. package/dist/attributes/shape/effects/implementations/curves.d.ts +1 -11
  147. package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
  148. package/dist/attributes/shape/effects/implementations/curves.js +1 -6
  149. package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
  150. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +0 -1
  151. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
  152. package/dist/attributes/shape/effects/implementations/directional-blur.js +0 -1
  153. package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
  154. package/dist/attributes/shape/effects/implementations/dither.d.ts +4 -35
  155. package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
  156. package/dist/attributes/shape/effects/implementations/dither.js +1 -7
  157. package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
  158. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +1 -22
  159. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
  160. package/dist/attributes/shape/effects/implementations/drop-shadow.js +0 -1
  161. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
  162. package/dist/attributes/shape/effects/implementations/duotone.d.ts +1 -9
  163. package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
  164. package/dist/attributes/shape/effects/implementations/duotone.js +0 -1
  165. package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
  166. package/dist/attributes/shape/effects/implementations/edges.d.ts +2 -15
  167. package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
  168. package/dist/attributes/shape/effects/implementations/edges.js +0 -1
  169. package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
  170. package/dist/attributes/shape/effects/implementations/glass.d.ts +1 -14
  171. package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
  172. package/dist/attributes/shape/effects/implementations/glass.js +0 -1
  173. package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
  174. package/dist/attributes/shape/effects/implementations/glow.d.ts +7 -47
  175. package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
  176. package/dist/attributes/shape/effects/implementations/glow.js +1 -9
  177. package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
  178. package/dist/attributes/shape/effects/implementations/grain.d.ts +1 -14
  179. package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
  180. package/dist/attributes/shape/effects/implementations/grain.js +0 -1
  181. package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
  182. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +0 -1
  183. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
  184. package/dist/attributes/shape/effects/implementations/grayscale.js +0 -1
  185. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
  186. package/dist/attributes/shape/effects/implementations/halftone.d.ts +5 -29
  187. package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
  188. package/dist/attributes/shape/effects/implementations/halftone.js +0 -1
  189. package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
  190. package/dist/attributes/shape/effects/implementations/invert.d.ts +3 -12
  191. package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
  192. package/dist/attributes/shape/effects/implementations/invert.js +0 -1
  193. package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
  194. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +2 -19
  195. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
  196. package/dist/attributes/shape/effects/implementations/kaleidoscope.js +1 -5
  197. package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
  198. package/dist/attributes/shape/effects/implementations/lut.d.ts +11 -36
  199. package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
  200. package/dist/attributes/shape/effects/implementations/lut.js +2 -8
  201. package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
  202. package/dist/attributes/shape/effects/implementations/magnify.d.ts +0 -1
  203. package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
  204. package/dist/attributes/shape/effects/implementations/magnify.js +0 -1
  205. package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
  206. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +3 -17
  207. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
  208. package/dist/attributes/shape/effects/implementations/motion-blur.js +2 -11
  209. package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
  210. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +1 -12
  211. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
  212. package/dist/attributes/shape/effects/implementations/oil-paint.js +0 -1
  213. package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
  214. package/dist/attributes/shape/effects/implementations/outline.d.ts +2 -14
  215. package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
  216. package/dist/attributes/shape/effects/implementations/outline.js +0 -1
  217. package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
  218. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +1 -15
  219. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
  220. package/dist/attributes/shape/effects/implementations/pixelate.js +0 -1
  221. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
  222. package/dist/attributes/shape/effects/implementations/posterize.d.ts +1 -10
  223. package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
  224. package/dist/attributes/shape/effects/implementations/posterize.js +0 -1
  225. package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
  226. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +3 -26
  227. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
  228. package/dist/attributes/shape/effects/implementations/progressive-blur.js +1 -2
  229. package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
  230. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +2 -16
  231. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
  232. package/dist/attributes/shape/effects/implementations/radial-blur.js +0 -1
  233. package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
  234. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +1 -13
  235. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
  236. package/dist/attributes/shape/effects/implementations/rgb-shift.js +0 -1
  237. package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
  238. package/dist/attributes/shape/effects/implementations/scanlines.d.ts +1 -8
  239. package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
  240. package/dist/attributes/shape/effects/implementations/scanlines.js +0 -1
  241. package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
  242. package/dist/attributes/shape/effects/implementations/scatter.d.ts +0 -1
  243. package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
  244. package/dist/attributes/shape/effects/implementations/scatter.js +0 -1
  245. package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
  246. package/dist/attributes/shape/effects/implementations/shader.d.ts +10 -53
  247. package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
  248. package/dist/attributes/shape/effects/implementations/shader.js +2 -9
  249. package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
  250. package/dist/attributes/shape/effects/implementations/sharpen.d.ts +1 -12
  251. package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
  252. package/dist/attributes/shape/effects/implementations/sharpen.js +0 -1
  253. package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
  254. package/dist/attributes/shape/effects/implementations/streak.d.ts +1 -8
  255. package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
  256. package/dist/attributes/shape/effects/implementations/streak.js +0 -1
  257. package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
  258. package/dist/attributes/shape/effects/implementations/threshold.d.ts +1 -9
  259. package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
  260. package/dist/attributes/shape/effects/implementations/threshold.js +0 -1
  261. package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
  262. package/dist/attributes/shape/effects/implementations/twirl.d.ts +1 -13
  263. package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
  264. package/dist/attributes/shape/effects/implementations/twirl.js +0 -1
  265. package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
  266. package/dist/attributes/shape/effects/implementations/vignette.d.ts +1 -9
  267. package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
  268. package/dist/attributes/shape/effects/implementations/vignette.js +0 -1
  269. package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
  270. package/dist/attributes/shape/effects/implementations/vintage.d.ts +0 -1
  271. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
  272. package/dist/attributes/shape/effects/implementations/vintage.js +0 -1
  273. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
  274. package/dist/attributes/shape/effects/implementations/wave.d.ts +3 -24
  275. package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
  276. package/dist/attributes/shape/effects/implementations/wave.js +1 -5
  277. package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
  278. package/dist/attributes/shape/effects/registry.d.ts +6 -41
  279. package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
  280. package/dist/attributes/shape/effects/registry.js +7 -45
  281. package/dist/attributes/shape/effects/registry.js.map +1 -1
  282. package/dist/attributes/shape/effects/spec.d.ts +6 -30
  283. package/dist/attributes/shape/effects/spec.d.ts.map +1 -1
  284. package/dist/attributes/shape/effects/spec.js +3 -9
  285. package/dist/attributes/shape/effects/spec.js.map +1 -1
  286. package/dist/attributes/shape/fill/blend.d.ts +1 -17
  287. package/dist/attributes/shape/fill/blend.d.ts.map +1 -1
  288. package/dist/attributes/shape/fill/blend.js +2 -15
  289. package/dist/attributes/shape/fill/blend.js.map +1 -1
  290. package/dist/attributes/shape/fill/chain.d.ts +17 -125
  291. package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
  292. package/dist/attributes/shape/fill/chain.js +22 -109
  293. package/dist/attributes/shape/fill/chain.js.map +1 -1
  294. package/dist/attributes/shape/fill/coerce.d.ts +10 -35
  295. package/dist/attributes/shape/fill/coerce.d.ts.map +1 -1
  296. package/dist/attributes/shape/fill/coerce.js +12 -47
  297. package/dist/attributes/shape/fill/coerce.js.map +1 -1
  298. package/dist/attributes/shape/fill/color/parser.d.ts +10 -44
  299. package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
  300. package/dist/attributes/shape/fill/color/parser.js +35 -96
  301. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  302. package/dist/attributes/shape/fill/gradient-stops.d.ts +1 -8
  303. package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -1
  304. package/dist/attributes/shape/fill/gradient-stops.js +2 -13
  305. package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
  306. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -24
  307. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts.map +1 -1
  308. package/dist/attributes/shape/fill/implementations/canvas3d.js +2 -9
  309. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  310. package/dist/attributes/shape/fill/implementations/dot-grid.d.ts +1 -14
  311. package/dist/attributes/shape/fill/implementations/dot-grid.d.ts.map +1 -1
  312. package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
  313. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts +5 -28
  314. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
  315. package/dist/attributes/shape/fill/implementations/fractal-noise.js +0 -1
  316. package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
  317. package/dist/attributes/shape/fill/implementations/grid.d.ts +8 -21
  318. package/dist/attributes/shape/fill/implementations/grid.d.ts.map +1 -1
  319. package/dist/attributes/shape/fill/implementations/grid.js +2 -8
  320. package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
  321. package/dist/attributes/shape/fill/implementations/image.d.ts +13 -79
  322. package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
  323. package/dist/attributes/shape/fill/implementations/image.js +6 -23
  324. package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
  325. package/dist/attributes/shape/fill/implementations/noise.d.ts +2 -15
  326. package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -1
  327. package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
  328. package/dist/attributes/shape/fill/implementations/shader.d.ts +11 -45
  329. package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
  330. package/dist/attributes/shape/fill/implementations/shader.js +5 -17
  331. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  332. package/dist/attributes/shape/fill/implementations/video.d.ts +12 -64
  333. package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -1
  334. package/dist/attributes/shape/fill/implementations/video.js +12 -50
  335. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  336. package/dist/attributes/shape/fill/lerp.d.ts +2 -13
  337. package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
  338. package/dist/attributes/shape/fill/lerp.js +2 -9
  339. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  340. package/dist/attributes/shape/fill/media-preset.d.ts +8 -49
  341. package/dist/attributes/shape/fill/media-preset.d.ts.map +1 -1
  342. package/dist/attributes/shape/fill/media-preset.js +8 -35
  343. package/dist/attributes/shape/fill/media-preset.js.map +1 -1
  344. package/dist/attributes/shape/fill/registry.d.ts +2 -26
  345. package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
  346. package/dist/attributes/shape/fill/registry.js +5 -40
  347. package/dist/attributes/shape/fill/registry.js.map +1 -1
  348. package/dist/attributes/shape/fill/union.d.ts +6 -30
  349. package/dist/attributes/shape/fill/union.d.ts.map +1 -1
  350. package/dist/attributes/shape/fill/union.js +1 -9
  351. package/dist/attributes/shape/fill/union.js.map +1 -1
  352. package/dist/attributes/shape/filters/chain.d.ts +15 -168
  353. package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
  354. package/dist/attributes/shape/filters/chain.js +8 -132
  355. package/dist/attributes/shape/filters/chain.js.map +1 -1
  356. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +1 -7
  357. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
  358. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
  359. package/dist/attributes/shape/filters/implementations/curves.d.ts +1 -7
  360. package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -1
  361. package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
  362. package/dist/attributes/shape/filters/implementations/echo.d.ts +1 -11
  363. package/dist/attributes/shape/filters/implementations/echo.d.ts.map +1 -1
  364. package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
  365. package/dist/attributes/shape/filters/index.d.ts +1 -6
  366. package/dist/attributes/shape/filters/index.d.ts.map +1 -1
  367. package/dist/attributes/shape/filters/index.js +0 -2
  368. package/dist/attributes/shape/filters/index.js.map +1 -1
  369. package/dist/attributes/shape/filters/registry.d.ts +5 -35
  370. package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
  371. package/dist/attributes/shape/filters/registry.js +7 -50
  372. package/dist/attributes/shape/filters/registry.js.map +1 -1
  373. package/dist/attributes/shape/filters/union.d.ts +10 -51
  374. package/dist/attributes/shape/filters/union.d.ts.map +1 -1
  375. package/dist/attributes/shape/filters/union.js.map +1 -1
  376. package/dist/attributes/shape/path/anchors.d.ts +18 -106
  377. package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
  378. package/dist/attributes/shape/path/anchors.js +15 -124
  379. package/dist/attributes/shape/path/anchors.js.map +1 -1
  380. package/dist/attributes/shape/path/bezier.d.ts +6 -54
  381. package/dist/attributes/shape/path/bezier.d.ts.map +1 -1
  382. package/dist/attributes/shape/path/bezier.js +10 -98
  383. package/dist/attributes/shape/path/bezier.js.map +1 -1
  384. package/dist/attributes/shape/path/index.d.ts +1 -11
  385. package/dist/attributes/shape/path/index.d.ts.map +1 -1
  386. package/dist/attributes/shape/path/index.js +1 -11
  387. package/dist/attributes/shape/path/index.js.map +1 -1
  388. package/dist/attributes/shape/path/measure.d.ts +5 -41
  389. package/dist/attributes/shape/path/measure.d.ts.map +1 -1
  390. package/dist/attributes/shape/path/measure.js +8 -57
  391. package/dist/attributes/shape/path/measure.js.map +1 -1
  392. package/dist/attributes/shape/path/morph.d.ts +4 -41
  393. package/dist/attributes/shape/path/morph.d.ts.map +1 -1
  394. package/dist/attributes/shape/path/morph.js +17 -117
  395. package/dist/attributes/shape/path/morph.js.map +1 -1
  396. package/dist/attributes/shape/path/ops.d.ts +5 -19
  397. package/dist/attributes/shape/path/ops.d.ts.map +1 -1
  398. package/dist/attributes/shape/path/ops.js.map +1 -1
  399. package/dist/attributes/shape/path/types.d.ts +10 -67
  400. package/dist/attributes/shape/path/types.d.ts.map +1 -1
  401. package/dist/attributes/shape/path/types.js +0 -1
  402. package/dist/attributes/shape/path/types.js.map +1 -1
  403. package/dist/attributes/shape/path/walk.d.ts +9 -63
  404. package/dist/attributes/shape/path/walk.d.ts.map +1 -1
  405. package/dist/attributes/shape/path/walk.js +21 -100
  406. package/dist/attributes/shape/path/walk.js.map +1 -1
  407. package/dist/attributes/shape/shaders/language.d.ts +2 -14
  408. package/dist/attributes/shape/shaders/language.d.ts.map +1 -1
  409. package/dist/attributes/shape/shaders/language.js +1 -8
  410. package/dist/attributes/shape/shaders/language.js.map +1 -1
  411. package/dist/attributes/shape/shaders/pack.d.ts +13 -78
  412. package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
  413. package/dist/attributes/shape/shaders/pack.js +1 -10
  414. package/dist/attributes/shape/shaders/pack.js.map +1 -1
  415. package/dist/attributes/shape/shaders/resolve.d.ts +1 -11
  416. package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
  417. package/dist/attributes/shape/shaders/resolve.js +3 -28
  418. package/dist/attributes/shape/shaders/resolve.js.map +1 -1
  419. package/dist/attributes/shape/shaders/uniforms.d.ts +3 -24
  420. package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -1
  421. package/dist/attributes/shape/shaders/uniforms.js +0 -0
  422. package/dist/attributes/shape/shaders/uniforms.js.map +1 -1
  423. package/dist/attributes/shape/shadow/shadow.d.ts +3 -20
  424. package/dist/attributes/shape/shadow/shadow.d.ts.map +1 -1
  425. package/dist/attributes/shape/shadow/shadow.js +0 -3
  426. package/dist/attributes/shape/shadow/shadow.js.map +1 -1
  427. package/dist/attributes/shape/stroke/stroke.d.ts +9 -58
  428. package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
  429. package/dist/attributes/shape/stroke/stroke.js +0 -6
  430. package/dist/attributes/shape/stroke/stroke.js.map +1 -1
  431. package/dist/attributes/shared/operators.d.ts +1 -8
  432. package/dist/attributes/shared/operators.d.ts.map +1 -1
  433. package/dist/attributes/shared/operators.js.map +1 -1
  434. package/dist/attributes/text/index.d.ts +1 -11
  435. package/dist/attributes/text/index.d.ts.map +1 -1
  436. package/dist/attributes/text/index.js +1 -11
  437. package/dist/attributes/text/index.js.map +1 -1
  438. package/dist/attributes/text/ops.d.ts +4 -30
  439. package/dist/attributes/text/ops.d.ts.map +1 -1
  440. package/dist/attributes/text/ops.js +7 -23
  441. package/dist/attributes/text/ops.js.map +1 -1
  442. package/dist/attributes/text/types.d.ts +5 -28
  443. package/dist/attributes/text/types.d.ts.map +1 -1
  444. package/dist/attributes/text/types.js.map +1 -1
  445. package/dist/browser/chunks/chunk-3ZIUZZC7.js +13 -0
  446. package/dist/browser/chunks/chunk-3ZIUZZC7.js.map +7 -0
  447. package/dist/browser/chunks/chunk-5TDMGUXQ.js +3 -0
  448. package/dist/browser/chunks/chunk-5TDMGUXQ.js.map +7 -0
  449. package/dist/browser/chunks/chunk-7YOYMMXK.js +6 -0
  450. package/dist/browser/chunks/chunk-7YOYMMXK.js.map +7 -0
  451. package/dist/browser/chunks/{chunk-4BDLFEOC.js → chunk-GEJEQQER.js} +1 -1
  452. package/dist/browser/chunks/chunk-GEJEQQER.js.map +7 -0
  453. package/dist/browser/component.js +1 -1
  454. package/dist/browser/experimental.js +1 -1
  455. package/dist/browser/index.js +1 -1
  456. package/dist/browser/index.js.map +4 -4
  457. package/dist/browser/manifest.json +1 -1
  458. package/dist/browser/sdk.js +1 -1
  459. package/dist/component.d.ts +3 -10
  460. package/dist/component.d.ts.map +1 -1
  461. package/dist/component.js +3 -10
  462. package/dist/component.js.map +1 -1
  463. package/dist/components/builtins/geometry/geometry.d.ts +15 -62
  464. package/dist/components/builtins/geometry/geometry.d.ts.map +1 -1
  465. package/dist/components/builtins/geometry/geometry.js.map +1 -1
  466. package/dist/components/builtins/geometry/shape-outline.d.ts +12 -61
  467. package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -1
  468. package/dist/components/builtins/geometry/shape-outline.js +29 -168
  469. package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
  470. package/dist/components/builtins/layout/layout.d.ts +1 -14
  471. package/dist/components/builtins/layout/layout.d.ts.map +1 -1
  472. package/dist/components/builtins/layout/layout.js.map +1 -1
  473. package/dist/components/builtins/media/media.d.ts +11 -51
  474. package/dist/components/builtins/media/media.d.ts.map +1 -1
  475. package/dist/components/builtins/media/media.js +3 -7
  476. package/dist/components/builtins/media/media.js.map +1 -1
  477. package/dist/components/builtins/text/number-format.d.ts +14 -47
  478. package/dist/components/builtins/text/number-format.d.ts.map +1 -1
  479. package/dist/components/builtins/text/number-format.js +19 -69
  480. package/dist/components/builtins/text/number-format.js.map +1 -1
  481. package/dist/components/builtins/text/number-pattern.d.ts +3 -37
  482. package/dist/components/builtins/text/number-pattern.d.ts.map +1 -1
  483. package/dist/components/builtins/text/number-pattern.js +6 -48
  484. package/dist/components/builtins/text/number-pattern.js.map +1 -1
  485. package/dist/components/builtins/text/text-defaults.d.ts +7 -25
  486. package/dist/components/builtins/text/text-defaults.d.ts.map +1 -1
  487. package/dist/components/builtins/text/text-defaults.js +7 -25
  488. package/dist/components/builtins/text/text-defaults.js.map +1 -1
  489. package/dist/components/builtins/text/text-layout.d.ts +2 -11
  490. package/dist/components/builtins/text/text-layout.d.ts.map +1 -1
  491. package/dist/components/builtins/text/text-layout.js +7 -22
  492. package/dist/components/builtins/text/text-layout.js.map +1 -1
  493. package/dist/components/builtins/text/text.d.ts +8 -46
  494. package/dist/components/builtins/text/text.d.ts.map +1 -1
  495. package/dist/components/builtins/text/text.js.map +1 -1
  496. package/dist/components/builtins/three/canvas3d.d.ts +6 -51
  497. package/dist/components/builtins/three/canvas3d.d.ts.map +1 -1
  498. package/dist/components/builtins/three/canvas3d.js.map +1 -1
  499. package/dist/components/builtins/three/grid-geometry3d.d.ts +3 -39
  500. package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -1
  501. package/dist/components/builtins/three/grid-geometry3d.js +8 -46
  502. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
  503. package/dist/components/builtins/three/three.d.ts +22 -117
  504. package/dist/components/builtins/three/three.d.ts.map +1 -1
  505. package/dist/components/builtins/three/three.js +5 -17
  506. package/dist/components/builtins/three/three.js.map +1 -1
  507. package/dist/components/factory/api.d.ts.map +1 -1
  508. package/dist/components/factory/api.js.map +1 -1
  509. package/dist/components/factory/views.d.ts.map +1 -1
  510. package/dist/components/factory/views.js +41 -3
  511. package/dist/components/factory/views.js.map +1 -1
  512. package/dist/components/trees/2d/group-bounds.d.ts +12 -41
  513. package/dist/components/trees/2d/group-bounds.d.ts.map +1 -1
  514. package/dist/components/trees/2d/group-bounds.js +3 -22
  515. package/dist/components/trees/2d/group-bounds.js.map +1 -1
  516. package/dist/components/trees/2d/node-lifecycle.d.ts +8 -36
  517. package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -1
  518. package/dist/components/trees/2d/node-lifecycle.js +35 -127
  519. package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
  520. package/dist/components/trees/2d/node-motion.d.ts +4 -36
  521. package/dist/components/trees/2d/node-motion.d.ts.map +1 -1
  522. package/dist/components/trees/2d/node-motion.js +3 -31
  523. package/dist/components/trees/2d/node-motion.js.map +1 -1
  524. package/dist/components/trees/2d/node-render.d.ts +3 -20
  525. package/dist/components/trees/2d/node-render.d.ts.map +1 -1
  526. package/dist/components/trees/2d/node-render.js +4 -23
  527. package/dist/components/trees/2d/node-render.js.map +1 -1
  528. package/dist/components/trees/2d/node-space.d.ts +4 -23
  529. package/dist/components/trees/2d/node-space.d.ts.map +1 -1
  530. package/dist/components/trees/2d/node-space.js +3 -17
  531. package/dist/components/trees/2d/node-space.js.map +1 -1
  532. package/dist/components/trees/2d/node-transform.d.ts +4 -33
  533. package/dist/components/trees/2d/node-transform.d.ts.map +1 -1
  534. package/dist/components/trees/2d/node-transform.js +4 -33
  535. package/dist/components/trees/2d/node-transform.js.map +1 -1
  536. package/dist/components/trees/2d/node2d.d.ts +112 -622
  537. package/dist/components/trees/2d/node2d.d.ts.map +1 -1
  538. package/dist/components/trees/2d/node2d.js +131 -605
  539. package/dist/components/trees/2d/node2d.js.map +1 -1
  540. package/dist/components/trees/audio/node-audio.d.ts +17 -65
  541. package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
  542. package/dist/components/trees/audio/node-audio.js +18 -68
  543. package/dist/components/trees/audio/node-audio.js.map +1 -1
  544. package/dist/components/trees/node/node-editor-state.d.ts +5 -45
  545. package/dist/components/trees/node/node-editor-state.d.ts.map +1 -1
  546. package/dist/components/trees/node/node-editor-state.js +1 -13
  547. package/dist/components/trees/node/node-editor-state.js.map +1 -1
  548. package/dist/components/trees/node/node-reactive.d.ts +6 -54
  549. package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
  550. package/dist/components/trees/node/node-reactive.js +13 -39
  551. package/dist/components/trees/node/node-reactive.js.map +1 -1
  552. package/dist/components/trees/node/node-time.d.ts +2 -15
  553. package/dist/components/trees/node/node-time.d.ts.map +1 -1
  554. package/dist/components/trees/node/node-time.js.map +1 -1
  555. package/dist/components/trees/node/node-walk.d.ts +7 -32
  556. package/dist/components/trees/node/node-walk.d.ts.map +1 -1
  557. package/dist/components/trees/node/node-walk.js +7 -32
  558. package/dist/components/trees/node/node-walk.js.map +1 -1
  559. package/dist/components/trees/node/node.d.ts +43 -248
  560. package/dist/components/trees/node/node.d.ts.map +1 -1
  561. package/dist/components/trees/node/node.js +51 -229
  562. package/dist/components/trees/node/node.js.map +1 -1
  563. package/dist/components/trees/root/canvas2d-node.d.ts +7 -60
  564. package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -1
  565. package/dist/components/trees/root/canvas2d-node.js +7 -47
  566. package/dist/components/trees/root/canvas2d-node.js.map +1 -1
  567. package/dist/components/trees/three/node3d.d.ts +24 -112
  568. package/dist/components/trees/three/node3d.d.ts.map +1 -1
  569. package/dist/components/trees/three/node3d.js +22 -104
  570. package/dist/components/trees/three/node3d.js.map +1 -1
  571. package/dist/document/audio.d.ts +9 -21
  572. package/dist/document/audio.d.ts.map +1 -1
  573. package/dist/document/audio.js +13 -28
  574. package/dist/document/audio.js.map +1 -1
  575. package/dist/document/builtins.d.ts +3 -9
  576. package/dist/document/builtins.d.ts.map +1 -1
  577. package/dist/document/builtins.js +43 -89
  578. package/dist/document/builtins.js.map +1 -1
  579. package/dist/document/command-traits.d.ts +15 -30
  580. package/dist/document/command-traits.d.ts.map +1 -1
  581. package/dist/document/command-traits.js +31 -31
  582. package/dist/document/command-traits.js.map +1 -1
  583. package/dist/document/deny-globals.d.ts +9 -43
  584. package/dist/document/deny-globals.d.ts.map +1 -1
  585. package/dist/document/deny-globals.js +18 -58
  586. package/dist/document/deny-globals.js.map +1 -1
  587. package/dist/document/diff.d.ts +6 -16
  588. package/dist/document/diff.d.ts.map +1 -1
  589. package/dist/document/diff.js +5 -11
  590. package/dist/document/diff.js.map +1 -1
  591. package/dist/document/doc-index.d.ts +5 -13
  592. package/dist/document/doc-index.d.ts.map +1 -1
  593. package/dist/document/doc-index.js +0 -2
  594. package/dist/document/doc-index.js.map +1 -1
  595. package/dist/document/expression/compile.d.ts +2 -2
  596. package/dist/document/expression/compile.d.ts.map +1 -1
  597. package/dist/document/expression/compile.js +8 -18
  598. package/dist/document/expression/compile.js.map +1 -1
  599. package/dist/document/expression/index.d.ts +11 -41
  600. package/dist/document/expression/index.d.ts.map +1 -1
  601. package/dist/document/expression/index.js +11 -41
  602. package/dist/document/expression/index.js.map +1 -1
  603. package/dist/document/expression/ops.d.ts +3 -12
  604. package/dist/document/expression/ops.d.ts.map +1 -1
  605. package/dist/document/expression/ops.js +4 -20
  606. package/dist/document/expression/ops.js.map +1 -1
  607. package/dist/document/expression/parse.d.ts +4 -14
  608. package/dist/document/expression/parse.d.ts.map +1 -1
  609. package/dist/document/expression/parse.js +34 -55
  610. package/dist/document/expression/parse.js.map +1 -1
  611. package/dist/document/expression/refs.d.ts +2 -8
  612. package/dist/document/expression/refs.d.ts.map +1 -1
  613. package/dist/document/expression/refs.js +2 -6
  614. package/dist/document/expression/refs.js.map +1 -1
  615. package/dist/document/expression/types.d.ts +18 -63
  616. package/dist/document/expression/types.d.ts.map +1 -1
  617. package/dist/document/expression/types.js +4 -15
  618. package/dist/document/expression/types.js.map +1 -1
  619. package/dist/document/expression/walk.d.ts +6 -20
  620. package/dist/document/expression/walk.d.ts.map +1 -1
  621. package/dist/document/expression/walk.js +18 -44
  622. package/dist/document/expression/walk.js.map +1 -1
  623. package/dist/document/index.js +2 -3
  624. package/dist/document/index.js.map +1 -1
  625. package/dist/document/migrate.d.ts +7 -22
  626. package/dist/document/migrate.d.ts.map +1 -1
  627. package/dist/document/migrate.js +44 -15
  628. package/dist/document/migrate.js.map +1 -1
  629. package/dist/document/missing-node.d.ts +4 -11
  630. package/dist/document/missing-node.d.ts.map +1 -1
  631. package/dist/document/missing-node.js +2 -5
  632. package/dist/document/missing-node.js.map +1 -1
  633. package/dist/document/node-decorator.d.ts +12 -53
  634. package/dist/document/node-decorator.d.ts.map +1 -1
  635. package/dist/document/node-decorator.js +16 -57
  636. package/dist/document/node-decorator.js.map +1 -1
  637. package/dist/document/node-descriptor.d.ts +25 -62
  638. package/dist/document/node-descriptor.d.ts.map +1 -1
  639. package/dist/document/node-descriptor.js.map +1 -1
  640. package/dist/document/placement.d.ts +18 -41
  641. package/dist/document/placement.d.ts.map +1 -1
  642. package/dist/document/placement.js +4 -11
  643. package/dist/document/placement.js.map +1 -1
  644. package/dist/document/project.d.ts +19 -52
  645. package/dist/document/project.d.ts.map +1 -1
  646. package/dist/document/project.js +2 -6
  647. package/dist/document/project.js.map +1 -1
  648. package/dist/document/prop-evolution.d.ts +10 -20
  649. package/dist/document/prop-evolution.d.ts.map +1 -1
  650. package/dist/document/prop-evolution.js +3 -7
  651. package/dist/document/prop-evolution.js.map +1 -1
  652. package/dist/document/registry.d.ts +80 -318
  653. package/dist/document/registry.d.ts.map +1 -1
  654. package/dist/document/registry.js +43 -147
  655. package/dist/document/registry.js.map +1 -1
  656. package/dist/document/settled-index.d.ts +12 -18
  657. package/dist/document/settled-index.d.ts.map +1 -1
  658. package/dist/document/settled-index.js +29 -31
  659. package/dist/document/settled-index.js.map +1 -1
  660. package/dist/document/timeline-patch.d.ts +6 -15
  661. package/dist/document/timeline-patch.d.ts.map +1 -1
  662. package/dist/document/timeline-patch.js +12 -21
  663. package/dist/document/timeline-patch.js.map +1 -1
  664. package/dist/document/timeline.d.ts +56 -263
  665. package/dist/document/timeline.d.ts.map +1 -1
  666. package/dist/document/timeline.js +97 -281
  667. package/dist/document/timeline.js.map +1 -1
  668. package/dist/document/types.d.ts +90 -264
  669. package/dist/document/types.d.ts.map +1 -1
  670. package/dist/document/types.js +13 -30
  671. package/dist/document/types.js.map +1 -1
  672. package/dist/document/validate.d.ts +10 -40
  673. package/dist/document/validate.d.ts.map +1 -1
  674. package/dist/document/validate.js +72 -137
  675. package/dist/document/validate.js.map +1 -1
  676. package/dist/document/vocabulary.d.ts +4 -7
  677. package/dist/document/vocabulary.d.ts.map +1 -1
  678. package/dist/document/vocabulary.js +0 -1
  679. package/dist/document/vocabulary.js.map +1 -1
  680. package/dist/index.d.ts +0 -1
  681. package/dist/index.d.ts.map +1 -1
  682. package/dist/index.js +0 -1
  683. package/dist/index.js.map +1 -1
  684. package/dist/layout/bounds.d.ts +1 -11
  685. package/dist/layout/bounds.d.ts.map +1 -1
  686. package/dist/layout/bounds.js.map +1 -1
  687. package/dist/layout/flex.d.ts +6 -20
  688. package/dist/layout/flex.d.ts.map +1 -1
  689. package/dist/layout/flex.js +7 -28
  690. package/dist/layout/flex.js.map +1 -1
  691. package/dist/layout/ops.d.ts +2 -11
  692. package/dist/layout/ops.d.ts.map +1 -1
  693. package/dist/layout/ops.js +2 -22
  694. package/dist/layout/ops.js.map +1 -1
  695. package/dist/layout/types.d.ts +11 -55
  696. package/dist/layout/types.d.ts.map +1 -1
  697. package/dist/layout/types.js.map +1 -1
  698. package/dist/platform/audio-sink.d.ts +7 -43
  699. package/dist/platform/audio-sink.d.ts.map +1 -1
  700. package/dist/platform/audio-sink.js +4 -29
  701. package/dist/platform/audio-sink.js.map +1 -1
  702. package/dist/platform/exporter.d.ts +5 -31
  703. package/dist/platform/exporter.d.ts.map +1 -1
  704. package/dist/platform/exporter.js.map +1 -1
  705. package/dist/platform/stepped-clock.d.ts +1 -16
  706. package/dist/platform/stepped-clock.d.ts.map +1 -1
  707. package/dist/platform/stepped-clock.js +1 -16
  708. package/dist/platform/stepped-clock.js.map +1 -1
  709. package/dist/platform/storage-adapter.d.ts +8 -68
  710. package/dist/platform/storage-adapter.d.ts.map +1 -1
  711. package/dist/platform/storage-adapter.js +8 -60
  712. package/dist/platform/storage-adapter.js.map +1 -1
  713. package/dist/platform/ticker.d.ts +11 -45
  714. package/dist/platform/ticker.d.ts.map +1 -1
  715. package/dist/platform/ticker.js +10 -37
  716. package/dist/platform/ticker.js.map +1 -1
  717. package/dist/project/config.d.ts +4 -14
  718. package/dist/project/config.d.ts.map +1 -1
  719. package/dist/project/config.js.map +1 -1
  720. package/dist/project/tree.d.ts +6 -35
  721. package/dist/project/tree.d.ts.map +1 -1
  722. package/dist/project/tree.js +1 -8
  723. package/dist/project/tree.js.map +1 -1
  724. package/dist/props/host.d.ts +7 -13
  725. package/dist/props/host.d.ts.map +1 -1
  726. package/dist/props/host.js +3 -1
  727. package/dist/props/host.js.map +1 -1
  728. package/dist/props/layout.d.ts +18 -0
  729. package/dist/props/layout.d.ts.map +1 -0
  730. package/dist/props/layout.js +73 -0
  731. package/dist/props/layout.js.map +1 -0
  732. package/dist/props/observer.d.ts +1 -7
  733. package/dist/props/observer.d.ts.map +1 -1
  734. package/dist/props/observer.js.map +1 -1
  735. package/dist/props/slot.d.ts +6 -19
  736. package/dist/props/slot.d.ts.map +1 -1
  737. package/dist/props/slot.js +5 -14
  738. package/dist/props/slot.js.map +1 -1
  739. package/dist/render/canvas-render-context2d.d.ts +8 -68
  740. package/dist/render/canvas-render-context2d.d.ts.map +1 -1
  741. package/dist/render/canvas-render-context2d.js +8 -69
  742. package/dist/render/canvas-render-context2d.js.map +1 -1
  743. package/dist/render/clip-contains.d.ts +2 -16
  744. package/dist/render/clip-contains.d.ts.map +1 -1
  745. package/dist/render/clip-contains.js +21 -82
  746. package/dist/render/clip-contains.js.map +1 -1
  747. package/dist/render/clip.d.ts +7 -25
  748. package/dist/render/clip.d.ts.map +1 -1
  749. package/dist/render/clip.js +5 -17
  750. package/dist/render/clip.js.map +1 -1
  751. package/dist/render/descriptors/ellipse.d.ts.map +1 -1
  752. package/dist/render/descriptors/ellipse.js +0 -1
  753. package/dist/render/descriptors/ellipse.js.map +1 -1
  754. package/dist/render/descriptors/line.d.ts.map +1 -1
  755. package/dist/render/descriptors/line.js +0 -1
  756. package/dist/render/descriptors/line.js.map +1 -1
  757. package/dist/render/descriptors/path-builder.d.ts +4 -32
  758. package/dist/render/descriptors/path-builder.d.ts.map +1 -1
  759. package/dist/render/descriptors/path-builder.js +3 -25
  760. package/dist/render/descriptors/path-builder.js.map +1 -1
  761. package/dist/render/descriptors/path.d.ts +1 -11
  762. package/dist/render/descriptors/path.d.ts.map +1 -1
  763. package/dist/render/descriptors/path.js +0 -1
  764. package/dist/render/descriptors/path.js.map +1 -1
  765. package/dist/render/descriptors/polygon.d.ts.map +1 -1
  766. package/dist/render/descriptors/polygon.js +0 -1
  767. package/dist/render/descriptors/polygon.js.map +1 -1
  768. package/dist/render/descriptors/polygram.d.ts.map +1 -1
  769. package/dist/render/descriptors/polygram.js +0 -1
  770. package/dist/render/descriptors/polygram.js.map +1 -1
  771. package/dist/render/descriptors/rect.d.ts.map +1 -1
  772. package/dist/render/descriptors/rect.js +0 -1
  773. package/dist/render/descriptors/rect.js.map +1 -1
  774. package/dist/render/descriptors/richtext.d.ts.map +1 -1
  775. package/dist/render/descriptors/richtext.js +0 -1
  776. package/dist/render/descriptors/richtext.js.map +1 -1
  777. package/dist/render/descriptors/shape.d.ts +17 -77
  778. package/dist/render/descriptors/shape.d.ts.map +1 -1
  779. package/dist/render/descriptors/shape.js +13 -47
  780. package/dist/render/descriptors/shape.js.map +1 -1
  781. package/dist/render/descriptors/text.d.ts +15 -94
  782. package/dist/render/descriptors/text.d.ts.map +1 -1
  783. package/dist/render/descriptors/text.js +8 -50
  784. package/dist/render/descriptors/text.js.map +1 -1
  785. package/dist/render/descriptors/transform.d.ts +5 -16
  786. package/dist/render/descriptors/transform.d.ts.map +1 -1
  787. package/dist/render/descriptors/transform.js +1 -17
  788. package/dist/render/descriptors/transform.js.map +1 -1
  789. package/dist/render/graphics2d.d.ts +24 -116
  790. package/dist/render/graphics2d.d.ts.map +1 -1
  791. package/dist/render/graphics2d.js +23 -108
  792. package/dist/render/graphics2d.js.map +1 -1
  793. package/dist/render/measure-context.d.ts +5 -29
  794. package/dist/render/measure-context.d.ts.map +1 -1
  795. package/dist/render/measure-context.js.map +1 -1
  796. package/dist/render/null-render-context.d.ts +2 -20
  797. package/dist/render/null-render-context.d.ts.map +1 -1
  798. package/dist/render/null-render-context.js +2 -20
  799. package/dist/render/null-render-context.js.map +1 -1
  800. package/dist/render/render-context2d.d.ts +52 -208
  801. package/dist/render/render-context2d.d.ts.map +1 -1
  802. package/dist/render/render-context2d.js.map +1 -1
  803. package/dist/render/surface.d.ts +2 -19
  804. package/dist/render/surface.d.ts.map +1 -1
  805. package/dist/render/surface.js.map +1 -1
  806. package/dist/render/text-defaults.d.ts +1 -17
  807. package/dist/render/text-defaults.d.ts.map +1 -1
  808. package/dist/render/text-defaults.js +6 -40
  809. package/dist/render/text-defaults.js.map +1 -1
  810. package/dist/render/text-layout.d.ts +12 -55
  811. package/dist/render/text-layout.d.ts.map +1 -1
  812. package/dist/render/text-layout.js +2 -16
  813. package/dist/render/text-layout.js.map +1 -1
  814. package/dist/render3d/bounds3d.d.ts +10 -32
  815. package/dist/render3d/bounds3d.d.ts.map +1 -1
  816. package/dist/render3d/bounds3d.js +2 -12
  817. package/dist/render3d/bounds3d.js.map +1 -1
  818. package/dist/render3d/builders.d.ts +8 -35
  819. package/dist/render3d/builders.d.ts.map +1 -1
  820. package/dist/render3d/builders.js +8 -35
  821. package/dist/render3d/builders.js.map +1 -1
  822. package/dist/render3d/camera.d.ts +10 -57
  823. package/dist/render3d/camera.d.ts.map +1 -1
  824. package/dist/render3d/camera.js +4 -26
  825. package/dist/render3d/camera.js.map +1 -1
  826. package/dist/render3d/fill3d.d.ts +7 -45
  827. package/dist/render3d/fill3d.d.ts.map +1 -1
  828. package/dist/render3d/fill3d.js +15 -85
  829. package/dist/render3d/fill3d.js.map +1 -1
  830. package/dist/render3d/geometry.d.ts +18 -106
  831. package/dist/render3d/geometry.d.ts.map +1 -1
  832. package/dist/render3d/geometry.js +2 -20
  833. package/dist/render3d/geometry.js.map +1 -1
  834. package/dist/render3d/graphics3d.d.ts +29 -133
  835. package/dist/render3d/graphics3d.d.ts.map +1 -1
  836. package/dist/render3d/graphics3d.js +23 -110
  837. package/dist/render3d/graphics3d.js.map +1 -1
  838. package/dist/render3d/index.d.ts +1 -16
  839. package/dist/render3d/index.d.ts.map +1 -1
  840. package/dist/render3d/index.js +1 -16
  841. package/dist/render3d/index.js.map +1 -1
  842. package/dist/render3d/inert.d.ts.map +1 -1
  843. package/dist/render3d/inert.js +1 -14
  844. package/dist/render3d/inert.js.map +1 -1
  845. package/dist/render3d/light.d.ts +3 -26
  846. package/dist/render3d/light.d.ts.map +1 -1
  847. package/dist/render3d/light.js.map +1 -1
  848. package/dist/render3d/material.d.ts +13 -87
  849. package/dist/render3d/material.d.ts.map +1 -1
  850. package/dist/render3d/material.js +2 -16
  851. package/dist/render3d/material.js.map +1 -1
  852. package/dist/render3d/matrix4.d.ts +14 -68
  853. package/dist/render3d/matrix4.d.ts.map +1 -1
  854. package/dist/render3d/matrix4.js +11 -60
  855. package/dist/render3d/matrix4.js.map +1 -1
  856. package/dist/render3d/render-context3d.d.ts +13 -51
  857. package/dist/render3d/render-context3d.d.ts.map +1 -1
  858. package/dist/render3d/render-context3d.js +9 -21
  859. package/dist/render3d/render-context3d.js.map +1 -1
  860. package/dist/render3d/resources.d.ts +9 -53
  861. package/dist/render3d/resources.d.ts.map +1 -1
  862. package/dist/render3d/resources.js +8 -48
  863. package/dist/render3d/resources.js.map +1 -1
  864. package/dist/render3d/rounded-box.d.ts +7 -21
  865. package/dist/render3d/rounded-box.d.ts.map +1 -1
  866. package/dist/render3d/rounded-box.js +7 -46
  867. package/dist/render3d/rounded-box.js.map +1 -1
  868. package/dist/render3d/scene-settings.d.ts +20 -78
  869. package/dist/render3d/scene-settings.d.ts.map +1 -1
  870. package/dist/render3d/scene-settings.js.map +1 -1
  871. package/dist/render3d/scene3d.d.ts +11 -53
  872. package/dist/render3d/scene3d.d.ts.map +1 -1
  873. package/dist/render3d/scene3d.js +12 -59
  874. package/dist/render3d/scene3d.js.map +1 -1
  875. package/dist/render3d/segments.d.ts +2 -25
  876. package/dist/render3d/segments.d.ts.map +1 -1
  877. package/dist/render3d/segments.js +1 -11
  878. package/dist/render3d/segments.js.map +1 -1
  879. package/dist/render3d/texture.d.ts +25 -112
  880. package/dist/render3d/texture.d.ts.map +1 -1
  881. package/dist/render3d/texture.js +3 -27
  882. package/dist/render3d/texture.js.map +1 -1
  883. package/dist/render3d/tracking.d.ts +2 -19
  884. package/dist/render3d/tracking.d.ts.map +1 -1
  885. package/dist/render3d/tracking.js +2 -19
  886. package/dist/render3d/tracking.js.map +1 -1
  887. package/dist/render3d/transform.d.ts +14 -60
  888. package/dist/render3d/transform.d.ts.map +1 -1
  889. package/dist/render3d/transform.js +0 -2
  890. package/dist/render3d/transform.js.map +1 -1
  891. package/dist/render3d/vector3.d.ts +6 -48
  892. package/dist/render3d/vector3.d.ts.map +1 -1
  893. package/dist/render3d/vector3.js +4 -38
  894. package/dist/render3d/vector3.js.map +1 -1
  895. package/dist/render3d/walk.d.ts +3 -27
  896. package/dist/render3d/walk.d.ts.map +1 -1
  897. package/dist/render3d/walk.js +5 -33
  898. package/dist/render3d/walk.js.map +1 -1
  899. package/dist/runtime/asset-refine.d.ts +34 -20
  900. package/dist/runtime/asset-refine.d.ts.map +1 -1
  901. package/dist/runtime/asset-refine.js +127 -31
  902. package/dist/runtime/asset-refine.js.map +1 -1
  903. package/dist/runtime/asset-timeline.d.ts +14 -53
  904. package/dist/runtime/asset-timeline.d.ts.map +1 -1
  905. package/dist/runtime/asset-timeline.js +6 -27
  906. package/dist/runtime/asset-timeline.js.map +1 -1
  907. package/dist/runtime/asset-update.d.ts +7 -26
  908. package/dist/runtime/asset-update.d.ts.map +1 -1
  909. package/dist/runtime/asset-update.js +6 -18
  910. package/dist/runtime/asset-update.js.map +1 -1
  911. package/dist/runtime/audio-index.d.ts +0 -2
  912. package/dist/runtime/audio-index.d.ts.map +1 -1
  913. package/dist/runtime/audio-index.js +0 -2
  914. package/dist/runtime/audio-index.js.map +1 -1
  915. package/dist/runtime/builtin-context.d.ts +3 -9
  916. package/dist/runtime/builtin-context.d.ts.map +1 -1
  917. package/dist/runtime/builtin-context.js +3 -9
  918. package/dist/runtime/builtin-context.js.map +1 -1
  919. package/dist/runtime/clip-instance.d.ts +12 -39
  920. package/dist/runtime/clip-instance.d.ts.map +1 -1
  921. package/dist/runtime/clip-instance.js +21 -45
  922. package/dist/runtime/clip-instance.js.map +1 -1
  923. package/dist/runtime/clip-store.d.ts +26 -68
  924. package/dist/runtime/clip-store.d.ts.map +1 -1
  925. package/dist/runtime/clip-store.js +47 -81
  926. package/dist/runtime/clip-store.js.map +1 -1
  927. package/dist/runtime/engine.d.ts +31 -85
  928. package/dist/runtime/engine.d.ts.map +1 -1
  929. package/dist/runtime/engine.js +16 -49
  930. package/dist/runtime/engine.js.map +1 -1
  931. package/dist/runtime/frame-time.d.ts +4 -15
  932. package/dist/runtime/frame-time.d.ts.map +1 -1
  933. package/dist/runtime/frame-time.js +5 -12
  934. package/dist/runtime/frame-time.js.map +1 -1
  935. package/dist/runtime/index.d.ts +0 -1
  936. package/dist/runtime/index.d.ts.map +1 -1
  937. package/dist/runtime/index.js +0 -1
  938. package/dist/runtime/index.js.map +1 -1
  939. package/dist/runtime/node-picking.d.ts +59 -139
  940. package/dist/runtime/node-picking.d.ts.map +1 -1
  941. package/dist/runtime/node-picking.js +87 -157
  942. package/dist/runtime/node-picking.js.map +1 -1
  943. package/dist/runtime/node-picking3d.d.ts +39 -96
  944. package/dist/runtime/node-picking3d.d.ts.map +1 -1
  945. package/dist/runtime/node-picking3d.js +98 -141
  946. package/dist/runtime/node-picking3d.js.map +1 -1
  947. package/dist/runtime/placement.d.ts +8 -17
  948. package/dist/runtime/placement.d.ts.map +1 -1
  949. package/dist/runtime/placement.js +7 -16
  950. package/dist/runtime/placement.js.map +1 -1
  951. package/dist/runtime/playback-controller.d.ts +78 -207
  952. package/dist/runtime/playback-controller.d.ts.map +1 -1
  953. package/dist/runtime/playback-controller.js +111 -226
  954. package/dist/runtime/playback-controller.js.map +1 -1
  955. package/dist/runtime/playback.d.ts +6 -14
  956. package/dist/runtime/playback.d.ts.map +1 -1
  957. package/dist/runtime/playback.js +6 -14
  958. package/dist/runtime/playback.js.map +1 -1
  959. package/dist/runtime/project-assets.d.ts +6 -14
  960. package/dist/runtime/project-assets.d.ts.map +1 -1
  961. package/dist/runtime/project-assets.js +7 -16
  962. package/dist/runtime/project-assets.js.map +1 -1
  963. package/dist/runtime/session.d.ts +22 -45
  964. package/dist/runtime/session.d.ts.map +1 -1
  965. package/dist/runtime/session.js +26 -46
  966. package/dist/runtime/session.js.map +1 -1
  967. package/dist/runtime/settle.d.ts +4 -10
  968. package/dist/runtime/settle.d.ts.map +1 -1
  969. package/dist/runtime/settle.js +4 -10
  970. package/dist/runtime/settle.js.map +1 -1
  971. package/dist/runtime/state-evaluator.d.ts +15 -37
  972. package/dist/runtime/state-evaluator.d.ts.map +1 -1
  973. package/dist/runtime/state-evaluator.js +27 -44
  974. package/dist/runtime/state-evaluator.js.map +1 -1
  975. package/dist/runtime/text-geometry.d.ts +18 -47
  976. package/dist/runtime/text-geometry.d.ts.map +1 -1
  977. package/dist/runtime/text-geometry.js +13 -27
  978. package/dist/runtime/text-geometry.js.map +1 -1
  979. package/dist/sdk/index.d.ts +1 -7
  980. package/dist/sdk/index.d.ts.map +1 -1
  981. package/dist/sdk/index.js +30 -138
  982. package/dist/sdk/index.js.map +1 -1
  983. package/dist/tween/command-decorator.d.ts +6 -26
  984. package/dist/tween/command-decorator.d.ts.map +1 -1
  985. package/dist/tween/command-decorator.js +1 -6
  986. package/dist/tween/command-decorator.js.map +1 -1
  987. package/dist/tween/command.d.ts +6 -53
  988. package/dist/tween/command.d.ts.map +1 -1
  989. package/dist/tween/command.js +5 -40
  990. package/dist/tween/command.js.map +1 -1
  991. package/dist/tween/ease/curve.d.ts +2 -17
  992. package/dist/tween/ease/curve.d.ts.map +1 -1
  993. package/dist/tween/ease/curve.js +1 -6
  994. package/dist/tween/ease/curve.js.map +1 -1
  995. package/dist/tween/ease/describe.d.ts +0 -11
  996. package/dist/tween/ease/describe.d.ts.map +1 -1
  997. package/dist/tween/ease/describe.js +0 -23
  998. package/dist/tween/ease/describe.js.map +1 -1
  999. package/dist/tween/ease/spec.d.ts +2 -18
  1000. package/dist/tween/ease/spec.d.ts.map +1 -1
  1001. package/dist/tween/ease/spec.js.map +1 -1
  1002. package/dist/tween/inert.d.ts +1 -14
  1003. package/dist/tween/inert.d.ts.map +1 -1
  1004. package/dist/tween/inert.js +1 -14
  1005. package/dist/tween/inert.js.map +1 -1
  1006. package/dist/tween/lerp.d.ts +2 -26
  1007. package/dist/tween/lerp.d.ts.map +1 -1
  1008. package/dist/tween/lerp.js +2 -26
  1009. package/dist/tween/lerp.js.map +1 -1
  1010. package/dist/tween/loop.d.ts +9 -50
  1011. package/dist/tween/loop.d.ts.map +1 -1
  1012. package/dist/tween/loop.js +6 -31
  1013. package/dist/tween/loop.js.map +1 -1
  1014. package/dist/tween/prepare.d.ts +2 -30
  1015. package/dist/tween/prepare.d.ts.map +1 -1
  1016. package/dist/tween/prepare.js +2 -30
  1017. package/dist/tween/prepare.js.map +1 -1
  1018. package/dist/tween/stepper.d.ts +4 -25
  1019. package/dist/tween/stepper.d.ts.map +1 -1
  1020. package/dist/tween/stepper.js.map +1 -1
  1021. package/dist/tween/to-command.d.ts +1 -8
  1022. package/dist/tween/to-command.d.ts.map +1 -1
  1023. package/dist/tween/to-command.js +2 -25
  1024. package/dist/tween/to-command.js.map +1 -1
  1025. package/dist/util/context.d.ts +4 -29
  1026. package/dist/util/context.d.ts.map +1 -1
  1027. package/dist/util/context.js +3 -15
  1028. package/dist/util/context.js.map +1 -1
  1029. package/dist/util/csv.d.ts +4 -29
  1030. package/dist/util/csv.d.ts.map +1 -1
  1031. package/dist/util/csv.js +3 -22
  1032. package/dist/util/csv.js.map +1 -1
  1033. package/dist/util/metrics.d.ts +2 -26
  1034. package/dist/util/metrics.d.ts.map +1 -1
  1035. package/dist/util/metrics.js +2 -26
  1036. package/dist/util/metrics.js.map +1 -1
  1037. package/dist/util/random.d.ts +20 -87
  1038. package/dist/util/random.d.ts.map +1 -1
  1039. package/dist/util/random.js +20 -87
  1040. package/dist/util/random.js.map +1 -1
  1041. package/dist/util/reference.d.ts +6 -35
  1042. package/dist/util/reference.d.ts.map +1 -1
  1043. package/dist/util/reference.js +1 -4
  1044. package/dist/util/reference.js.map +1 -1
  1045. package/dist/util/scheduler.d.ts +6 -27
  1046. package/dist/util/scheduler.d.ts.map +1 -1
  1047. package/dist/util/scheduler.js +8 -35
  1048. package/dist/util/scheduler.js.map +1 -1
  1049. package/package.json +1 -1
  1050. package/dist/browser/chunks/chunk-4BDLFEOC.js.map +0 -7
  1051. package/dist/browser/chunks/chunk-7DB6BI27.js +0 -6
  1052. package/dist/browser/chunks/chunk-7DB6BI27.js.map +0 -7
  1053. package/dist/browser/chunks/chunk-IX53IFBD.js +0 -13
  1054. package/dist/browser/chunks/chunk-IX53IFBD.js.map +0 -7
  1055. package/dist/browser/chunks/chunk-Q55UPA3E.js +0 -3
  1056. package/dist/browser/chunks/chunk-Q55UPA3E.js.map +0 -7
  1057. package/dist/renamed-scene-names.d.ts +0 -17
  1058. package/dist/renamed-scene-names.d.ts.map +0 -1
  1059. package/dist/renamed-scene-names.js +0 -9
  1060. package/dist/renamed-scene-names.js.map +0 -1
  1061. package/dist/runtime/precompisition.d.ts +0 -24
  1062. package/dist/runtime/precompisition.d.ts.map +0 -1
  1063. package/dist/runtime/precompisition.js +0 -7
  1064. package/dist/runtime/precompisition.js.map +0 -1
@@ -23,16 +23,10 @@ import { Insets, InsetsResolved } from "../../../attributes/layout/insets.js";
23
23
  import { MeasureContext2D } from "../../../render/measure-context.js";
24
24
  import type { FlowSettings } from "../../../layout/types.js";
25
25
  /**
26
- * Where a parent puts a child beyond the box it laid it out in: the turn, size,
27
- * tilt, depth and fade of a slot in an arrangement — a ring of cards, tiles on a
28
- * sphere. Applied about the box's centre and *before* the child's own
29
- * transform, so the child's `x`/`y`/`rotation`/`scale`, and every command on
30
- * them, keep working relative to the slot.
31
- *
32
- * Answered by the parent ({@link Node2D._placementOf}) rather than written onto
33
- * the child, so a child moved to another parent cannot carry a stale slot, and
34
- * read by the renderer, picking and `global` alike, so a selection box lands on
35
- * the pixels.
26
+ * A slot's turn, size, tilt, depth and fade in a parent's arrangement (a ring of cards, tiles on a
27
+ * sphere). Applied about the box centre and before the child's own transform, so the child's
28
+ * `x`/`y`/`rotation`/`scale` and their commands stay relative to the slot. Answered by the parent
29
+ * ({@link Node2D._placementOf}) rather than stored on the child, so a reparented child can't carry a stale slot.
36
30
  */
37
31
  export interface ChildPlacement {
38
32
  /** In-plane turn, degrees clockwise. */
@@ -47,23 +41,17 @@ export interface ChildPlacement {
47
41
  readonly opacity: number;
48
42
  }
49
43
  /**
50
- * A parent's own coordinates for where its children sit — the units of a graph,
51
- * say. Position only: a child keeps its size, turn and scale, so a label on a
52
- * plot follows the plot's range without being stretched by it.
53
- *
54
- * Answered by the parent ({@link Node2D._planeOf}) for the reasons a slot is,
55
- * and read by the renderer, picking, `global` and `moveTo({ target })` alike.
44
+ * A parent's own coordinates for where its children sit (graph units, say). Position only: a child
45
+ * keeps its size, turn and scale. Answered by the parent ({@link Node2D._planeOf}), like a slot.
56
46
  */
57
47
  export interface ChildPlane {
58
48
  /** A child's `x`/`y` as a pixel offset, y-up, from the centre of its layout box. */
59
49
  toOffset(x: number, y: number): Vector2;
60
- /** The inverse: the `x`/`y` that put a child at that offset. */
61
50
  toCoords(x: number, y: number): Vector2;
62
51
  }
63
52
  /**
64
- * A point of a node an editor can drag to set one of its `Vector2` props: the
65
- * two ends of an arrow. `at` is in the node's own frame, y-up from its origin,
66
- * the frame {@link Node2D._localBounds} is in.
53
+ * A point an editor can drag to set one of the node's `Vector2` props. `at` is in the node's own
54
+ * frame, y-up from its origin, the frame {@link Node2D._localBounds} is in.
67
55
  */
68
56
  export interface NodeHandle {
69
57
  readonly prop: string;
@@ -78,16 +66,10 @@ export { Node } from "../../../components/trees/node/node.js";
78
66
  export type { NodeChildren, NodeConfig, NodeMetadata, NodeDimension, NodeProps } from "../../../components/trees/node/node.js";
79
67
  export type { WorldTransform } from "../../../attributes/layout/world-transform.js";
80
68
  export type { PropInput, PropInputs } from "../../../attributes/properties/inputs.js";
81
- /**
82
- * The camera props a node pushes around its children — the three inputs
83
- * `RenderContext2D.beginCamera` takes beyond the viewport rect. See
84
- * {@link Node2D._cameraScope}.
85
- */
86
69
  /** @internal */
87
70
  export interface CameraScope {
88
71
  /** World point (y-up) the viewport centres on — what the camera is aimed at. */
89
72
  lookAt: Vector2;
90
- /** Uniform zoom factor. */
91
73
  zoom: number;
92
74
  /** Viewport rotation in degrees; the renderer applies it as `rotate(-heading)`. */
93
75
  heading: number;
@@ -97,22 +79,9 @@ export interface Node2DProps extends NodeProps {
97
79
  y: number;
98
80
  width: SizeInput;
99
81
  height: SizeInput;
100
- /**
101
- * Per-child weight for the gap this node contributes to its parent's flex
102
- * run, `[0, 1]`. See the property's own note — set it to collapse a child
103
- * without the surrounding gap popping.
104
- */
82
+ /** Weight `[0, 1]` for the gap this child contributes to its parent's flex run; collapse a child without the gap popping. */
105
83
  gapScale: number;
106
- /**
107
- * Sets `width` and `height` to the same value in one go. Pure sugar: at
108
- * construction time, an author-facing `size` is expanded into `width`/
109
- * `height` before either is applied. Explicit `width` or `height` takes
110
- * precedence over `size` (mirroring `padding`'s side-vs-shorthand rule),
111
- * so `{ size: 200, width: 100 }` yields `width: 100, height: 200`.
112
- * Reactive bindings and `to()`/`set()` targets both work the same as
113
- * `width`/`height` — `size: 'fill'`, `size: () => ...`, or
114
- * `node.to({ size: 300 }, 0.5)` are all valid.
115
- */
84
+ /** Sugar for `width` and `height`; an explicit `width` or `height` wins (`{ size: 200, width: 100 }` is 100 by 200). */
116
85
  size: SizeInput;
117
86
  scale: number;
118
87
  rotation: number;
@@ -120,22 +89,15 @@ export interface Node2DProps extends NodeProps {
120
89
  /** Layer blend mode. `'pass-through'` (default) does not isolate the node — its opacity scales each child/fill while they blend against the backdrop. Any other mode isolates the node and blends its flattened result against the backdrop. */
121
90
  blend: NodeBlendMode;
122
91
  effects: Effect;
123
- /** Inner spacing between this node's edges and its content/children. */
124
92
  padding: Insets;
125
93
  /** When true, content drawn outside this node's outline is clipped away (see {@link Node2D.clipSelf}). */
126
94
  clip: boolean;
127
95
  /**
128
- * Pivot point for rotation and scale. Either a **named alignment** (`'center'`,
129
- * `'topRight'`, `'bottomLeft'`, … — the node `align` vocabulary) or an explicit
130
- * {@link Vector2}: `(0,0)`=center, `(-1,1)`=top-left, `(1,-1)`=bottom-right. Set
131
- * automatically when an alignment *positioning* prop is used.
96
+ * Pivot for rotation and scale: a named alignment (`'center'`, `'topRight'`, ...) or a normalised
97
+ * {@link Vector2} (`(0,0)` centre, `(-1,1)` top-left). Set automatically when an alignment positioning prop is used.
132
98
  */
133
99
  pivot: Alignment;
134
- /**
135
- * Mirror the node (and its whole subtree) across its vertical centre line.
136
- * The same thing CSS's `scaleX(-1)` is: text reads backwards, a left-pointing
137
- * arrow points right, and nothing about the node's box or its layout moves.
138
- */
100
+ /** Mirror across the vertical centre line (CSS `scaleX(-1)`); the box and layout don't move. */
139
101
  flipHorizontal: boolean;
140
102
  /** Mirror across the horizontal centre line — CSS's `scaleY(-1)`. See {@link flipHorizontal}. */
141
103
  flipVertical: boolean;
@@ -144,81 +106,25 @@ export interface Node2DProps extends NodeProps {
144
106
  /** Tilt about the vertical axis, in **degrees**. Positive swings the right edge away from the viewer. */
145
107
  rotationY: number;
146
108
  /**
147
- * In-plane rotation belonging to the 3D transform, in **degrees** clockwise —
148
- * the Z axis of the `rotateX · rotateY · rotateZ` block.
149
- *
150
- * **Not a second name for {@link rotation}.** The two are independent numbers
151
- * and editing one never moves the other. What separates them is which side of
152
- * the geometry/paint line they fall on: `rotation` turns the node's *shape*,
153
- * so its box turns with it and everything reading that box follows, while
154
- * this is part of the projection, which is paint (see `Node2D._localMatrix`).
155
- * Turning a node with `rotation` turns its selection outline; turning it with
156
- * `rotationZ` spins the picture inside a box that stays where it was.
157
- *
158
- * They compose the only way two rotations about one axis can — they add.
109
+ * In-plane rotation of the 3D transform, degrees clockwise. Independent of {@link rotation}, which
110
+ * turns the node's shape (box and selection outline); this is paint-only and spins the picture inside a
111
+ * box that stays put. They add.
159
112
  */
160
113
  rotationZ: number;
161
- /**
162
- * Push along the view axis, in px — CSS's `translateZ`. Positive brings the
163
- * node toward the viewer, so it projects larger.
164
- *
165
- * **Inert without {@link perspective}.** With no perspective the projection is
166
- * parallel and z is simply dropped, exactly as in CSS: there is no viewpoint
167
- * for a thing to be nearer to.
168
- */
114
+ /** Push along the view axis, px (CSS `translateZ`); positive is toward the viewer. Inert without {@link perspective}. */
169
115
  depth: number;
170
116
  /**
171
- * Distance from the viewer to the plane the node sits in, in px. `0` (the
172
- * default) is no perspective at all — a parallel projection, where a tilt
173
- * squashes the node evenly rather than making its far edge recede.
174
- *
175
- * Smaller is more dramatic: the node subtends more of the field of view, so
176
- * the convergence is stronger. Somewhere around 800–1500 reads like a page
177
- * on a desk; a few hundred reads like a wide-angle lens.
178
- *
179
- * Declared per node rather than inherited from an ancestor, which is where
180
- * CSS puts it. A scene graph has no viewport element to hang it on, and a
181
- * node that carries its own is one that can be handed around, nested and
182
- * animated without its depth depending on where it was dropped.
117
+ * Distance from the viewer to the node's plane, px. `0` (default) is a parallel projection: a tilt
118
+ * squashes evenly instead of receding. Smaller is more dramatic (~800-1500 reads like a page on a desk).
119
+ * Per node, not inherited as in CSS: a scene graph has no viewport element, and a node carrying its own
120
+ * can be nested and animated without its depth depending on where it was dropped.
183
121
  */
184
122
  perspective: number;
185
- /**
186
- * Whether the node still paints once it has turned past edge-on and is
187
- * showing its back — CSS's `backface-visibility`, defaulted the CSS way
188
- * (`visible`).
189
- *
190
- * Set it `false` for the card-flip: two nodes back to back, one at
191
- * `rotationY: 0` and one at `180`, each hidden exactly while the other faces
192
- * out. The test is the tilt alone (see `facesAway`) — a {@link flipHorizontal}
193
- * mirrors the node without turning it around, so it does not hide it.
194
- */
123
+ /** Whether the node paints once turned past edge-on (CSS `backface-visibility`, default visible); `false` gives the card flip. Decided by tilt alone (see `facesAway`), so {@link flipHorizontal} doesn't hide it. */
195
124
  backfaceVisible: boolean;
196
- /**
197
- * The point every rotation, scale and mirror turns about — CSS's
198
- * `transform-origin`, in the same `[-1, 1]` vocabulary as {@link pivot}
199
- * (a named alignment, or a {@link Vector2} where `(0,0)` is the centre).
200
- *
201
- * Unset (the default) it *is* the pivot, so a node keeps turning about
202
- * whatever its alignment positioning gave it and nothing changes. Set, it wins
203
- * for the whole transform rather than for the 3D half of it — one origin, the
204
- * way CSS has one. A second origin that only some of the rotations respected
205
- * would produce a picture nobody could predict.
206
- */
125
+ /** Origin every rotation, scale and mirror turns about (CSS `transform-origin`), same vocabulary as {@link pivot}. Unset it is the pivot; set it wins for the whole transform, so there is one origin as in CSS. */
207
126
  transformOrigin: Alignment;
208
- /**
209
- * All of the above in one bag — construction sugar, expanded into the
210
- * individual props before anything reads them (exactly as {@link size} is
211
- * expanded into `width`/`height`), so `set()`, `to()` and reactive callbacks
212
- * all behave identically whichever form is used.
213
- *
214
- * ```ts
215
- * Rect({ transform3D: { rotationX: 45, rotationY: -17, perspective: 900 } })
216
- * card().to({ transform3D: { rotationY: 180 } }, 0.8)
217
- * ```
218
- *
219
- * `rotationZ` is the block's own in-plane rotation and is **not** the node's
220
- * {@link rotation} under another name — see its note for what separates them.
221
- */
127
+ /** The 3D props in one bag: construction sugar expanded into the individual props before anything reads them, like {@link size}. Its `rotationZ` is not {@link rotation}. */
222
128
  transform3D: NodeTransform3D;
223
129
  center: Vector2 | (() => Vector2);
224
130
  topLeft: Vector2 | (() => Vector2);
@@ -229,14 +135,7 @@ export interface Node2DProps extends NodeProps {
229
135
  bottomCenter: Vector2 | (() => Vector2);
230
136
  centerLeft: Vector2 | (() => Vector2);
231
137
  centerRight: Vector2 | (() => Vector2);
232
- /**
233
- * Proportional share of the free space along the parent's main axis,
234
- * relative to sibling `fill` children (like Flutter's `Expanded(flex:)`).
235
- * Only meaningful when this node fills the main axis — in a row that's
236
- * `width:'fill'`, in a column `height:'fill'`. Two siblings with `flex` 2
237
- * and 1 split the free space 2:1. Defaults to 1. Specifying `flex` without
238
- * an explicit `width`/`height` defaults both to `'fill'`.
239
- */
138
+ /** Share of free main-axis space relative to sibling `fill` children (Flutter's `Expanded(flex:)`), default 1. Setting it without `width`/`height` defaults both to `'fill'`. */
240
139
  flex: number;
241
140
  /** 1-based column index for explicit grid placement. Undefined = auto-placed. */
242
141
  column: number;
@@ -248,92 +147,26 @@ export interface Node2DProps extends NodeProps {
248
147
  rowSpan: number;
249
148
  }
250
149
  /**
251
- * The 2D tree's base: what every `component2d` lowers onto, and the scene root
252
- * ({@link Canvas2D}). It wires together three systems:
253
- *
254
- * **Properties** — each declared prop is backed by a {@link PropSlot}, which
255
- * holds either a value or a thunk. {@link set} updates props imperatively, and
256
- * a callback `() => expr` binds one to a derived value.
257
- *
258
- * **Tweening** — `to({ data, duration, easing })` returns a {@link Command}
259
- * that animates props to target values, evaluable at a time via `at(t)`.
260
- * `moveTo`, `fadeTo`, `rotateTo`, `scaleTo` and the rest wrap it.
261
- *
262
- * **Layout** — `measure()` is called top-down to resolve sizes, then
263
- * `layout()` places the node in its allocated `BoxBounds` and its children in
264
- * its content box.
265
- *
266
- * ### Built-in visual props
267
- * | prop | default | unit / notes |
268
- * |-----------|----------|---------------------------------------|
269
- * | `x` | 0 | horizontal offset in scene pixels |
270
- * | `y` | 0 | vertical offset (positive = up) |
271
- * | `width` | `'fill'` | `SizeInput`: px, `'fill'`, `'auto'` |
272
- * | `height` | `'fill'` | same |
273
- * | `size` | — | sugar: sets `width` and `height` together |
274
- * | `scale` | 1 | uniform scale factor |
275
- * | `rotate` | 0 | degrees, clockwise |
276
- * | `opacity` | 1 | 0–1 |
277
- * | `blend` | `'pass-through'` | layer blend mode (`NodeBlendMode`) |
278
- * | `effects` | [] | post-process / blend effects |
279
- * | `padding` | 0 | inner spacing, all four edges |
150
+ * The 2D tree's base: what every `component2d` lowers onto, and the scene root ({@link Canvas2D}).
151
+ * Props are {@link PropSlot}-backed (a value or a thunk); `to()` returns a {@link Command}; `measure()`
152
+ * runs top-down, then `layout()` places the node and its children.
280
153
  */
281
154
  export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P> {
282
155
  get dimension(): NodeDimension;
283
- /**
284
- * This node's parent, when that parent is itself 2D.
285
- *
286
- * A `Node2D` can only ever be adopted by another `Node2D` (see
287
- * {@link Node.acceptsChild}), so this is `null` only for a detached node or
288
- * the root — but it is typed honestly rather than cast, because the base
289
- * tree holds both dimensions.
290
- */
156
+ /** Null only for a detached node or the root; the base tree holds both dimensions, so this is typed rather than cast. */
291
157
  protected get parent2D(): Node2D | null;
292
- /**
293
- * This node's parent, narrowed to the 2D tree.
294
- *
295
- * Only a `Node2D` can adopt a `Node2D` (see {@link Node.acceptsChild}), so
296
- * this never hides a real parent — it just spares every 2D caller a cast.
297
- */
158
+ /** Narrowed to the 2D tree: only a `Node2D` can adopt a `Node2D` (see {@link Node.acceptsChild}). */
298
159
  get parent(): Node2D | null;
299
- /**
300
- * This node's children **in the 2D tree**.
301
- *
302
- * `Canvas3D` is the one node that holds both dimensions, and its `Node3D`
303
- * children are not part of the 2D tree — they describe a scene it paints,
304
- * not boxes it lays out — so they are reached through its own accessor
305
- * instead. Every other node's list is already 2D, and this returns the live
306
- * array untouched in that case rather than allocating a copy per read.
307
- */
160
+ /** Children in the 2D tree. `Canvas3D` also holds `Node3D` children outside it (reached through its own accessor); otherwise the live array is returned uncopied. */
308
161
  get children(): Node2D[];
309
162
  constructor(props?: NodeConfig<any, P>);
310
- /**
311
- * The 2D half of `set()`: `size` and `transform3D` are sugar with no slot of
312
- * their own, so they are distributed into the props that do have one before
313
- * the generic write loop runs.
314
- */
315
163
  set(props: {
316
164
  [K in keyof P]?: P[K] | (() => P[K]);
317
165
  }): void;
318
- /**
319
- * The 2D half of `_prepareStep`: expand the positional sugar into the props
320
- * that actually have cells, then let the base resolve the step.
321
- *
322
- * `to` is mutated in place, so the base sees the expanded target — which is
323
- * why this can run entirely before `super`.
324
- */
325
166
  _prepareStep(to: Partial<P>, duration: number, easing?: EasingFunction): TweenStepper;
326
- /**
327
- * A component's paint entries declare themselves, so only a node painting
328
- * something its attributes do not describe has anything to add.
329
- */
167
+ /** Effects are the only assets a bare node declares; component paint entries declare their own. */
330
168
  declareAssets(assets: AssetScope): void;
331
- /** Sample this node's own derived render state for the current frame. */
332
169
  _sample(): void;
333
- /**
334
- * Record this node's current position as the motion history's previous
335
- * frame, stamped `at`, deriving no velocity — see the base's note.
336
- */
337
170
  _primeMotion(at: number): void;
338
171
  x: number;
339
172
  y: number;
@@ -346,62 +179,25 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
346
179
  effects: Effect;
347
180
  padding: Insets;
348
181
  readonly pivot: Alignment;
349
- /** Mirror across the vertical centre line. See {@link Node2DProps.flipHorizontal}. */
350
182
  flipHorizontal: boolean;
351
- /** Mirror across the horizontal centre line. See {@link Node2DProps.flipVertical}. */
352
183
  flipVertical: boolean;
353
- /** Tilt about the horizontal axis, degrees. See {@link Node2DProps.rotationX}. */
354
184
  rotationX: number;
355
- /** Tilt about the vertical axis, degrees. See {@link Node2DProps.rotationY}. */
356
185
  rotationY: number;
357
186
  /** The 3D block's in-plane rotation, degrees — distinct from {@link rotation}. See {@link Node2DProps.rotationZ}. */
358
187
  rotationZ: number;
359
- /** Push along the view axis, px. See {@link Node2DProps.depth}. */
360
188
  depth: number;
361
- /**
362
- * Viewer distance in px; `0` is a parallel projection. See
363
- * {@link Node2DProps.perspective}.
364
- *
365
- * Tweened in reciprocal space ({@link lerpPerspective}), not linearly: the
366
- * renderer's own projection math varies with `1/perspective`, so a plain
367
- * lerp of the raw distance sweeps through the near-zero numbers next to
368
- * "off" and flashes an exaggerated, near-degenerate projection right at the
369
- * start of a `0 → n` tween (or the end of an `n → 0` one) before settling
370
- * to the depth actually asked for.
371
- */
189
+ /** Tweened in reciprocal space ({@link lerpPerspective}): the projection varies with `1/perspective`, so a linear lerp flashes a near-degenerate projection at the start of a `0 -> n` tween. */
372
190
  perspective: number;
373
- /** Whether the node paints while showing its back. See {@link Node2DProps.backfaceVisible}. */
374
191
  backfaceVisible: boolean;
375
192
  /**
376
- * The point the transform turns about, overriding {@link pivot}. See
377
- * {@link Node2DProps.transformOrigin}.
378
- *
379
- * `undefined` until set — that absence *is* "follow the pivot", which no
380
- * default value could say, since every alignment is a real point including the
381
- * centre. Same shape as the `column`/`row` cells above. Declared with a plain
382
- * `property` rather than `alignmentProperty()` for exactly that reason: that one
383
- * folds a missing `default` back onto `'center'`.
193
+ * `undefined` means "follow the pivot", which no default could say since every alignment is a real point.
194
+ * Hence a plain `property`, not `alignmentProperty()` (which folds a missing default to `'center'`).
384
195
  */
385
196
  transformOrigin: Alignment | undefined;
386
197
  /** When true, content drawn by this node's children is clipped to its outline (see {@link clipSelf}). */
387
198
  clip: boolean;
388
199
  flex: number;
389
- /**
390
- * Per-child weight for the flex gap this node contributes to its parent's
391
- * main axis, in `[0, 1]`. Default `1` = a full gap on each side (normal
392
- * layout). Driven `0 → 1` (insert) / `1 → 0` (remove) by the animated
393
- * `addChildAt`/`removeChildAt` overloads so the surrounding gap opens/closes
394
- * in lockstep with the child's box instead of popping — see
395
- * {@link addChildAtAnimated}. Read only by flex containers off their
396
- * children.
397
- *
398
- * Rarely set by hand, but it has to be *settable*: a host collapsing a child
399
- * in place rather than removing it — which is what makes a show/hide a value
400
- * a time can produce instead of an effect that has to have run — needs the
401
- * gap to close with it. Declared on {@link Node2DProps} for that reason; it
402
- * used to be reachable only through a cast, which is why the lifecycle
403
- * helpers carry one.
404
- */
200
+ /** Flex gap weight `[0, 1]`, default 1. The animated `addChildAt`/`removeChildAt` drive it so the gap opens and closes with the child's box (see {@link addChildAtAnimated}); settable so a host can collapse a child in place. */
405
201
  gapScale: number;
406
202
  column: number | undefined;
407
203
  row: number | undefined;
@@ -409,18 +205,8 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
409
205
  rowSpan: number;
410
206
  private readonly _layoutBounds;
411
207
  /**
412
- * The size limits and the measurer threaded through this node's last
413
- * {@link measure} pass.
414
- *
415
- * Retained so off-tree work can measure a not-yet-attached child *in
416
- * isolation* — the animated child-insert in `node-lifecycle.ts` needs a hug
417
- * child's natural size without putting it in this node's flow first, or the
418
- * siblings shift for a frame. Undefined until this node is first measured.
419
- *
420
- * One object rather than two loose fields, because the two are only ever
421
- * useful together and were previously reached through a
422
- * `{ constraints?; _lastScope? }` structural cast from two other modules —
423
- * a cast that would have gone on compiling through any rename.
208
+ * Limits and measurer from the last {@link measure} pass, so off-tree work (the animated child-insert in
209
+ * `node-lifecycle.ts`) can size a detached hug child without shifting siblings. Undefined until measured.
424
210
  *
425
211
  * @internal
426
212
  */
@@ -428,65 +214,24 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
428
214
  constraints: SizeConstraints;
429
215
  measurer: MeasureContext2D;
430
216
  };
431
- /**
432
- * The box the last layout pass allocated this node: its size, and where it
433
- * sits in its parent's space (canvas y-down).
434
- *
435
- * Reactive — a read inside a binding is tracked, so a prop bound to another
436
- * node's box re-evaluates when that box moves.
437
- *
438
- * **Public, and a single member.** It used to be a `protected layoutRect`
439
- * plus a public `measuredRect` alias that existed only so the picking walk
440
- * could reach it — and, in practice, a `(node as any).layoutRect` cast in
441
- * every test that needed a box. Two names for one value, one of them
442
- * reachable only by lying to the compiler, is worse than the thing
443
- * `protected` was buying. Writing it is still {@link setLayoutBounds}, which
444
- * is where the layout engine's invariants live.
445
- */
217
+ /** The box the last layout pass allocated: size, and position in the parent's space (canvas y-down). Reactive. Written only via {@link setLayoutBounds}, where the layout invariants live. */
446
218
  get layoutBounds(): BoxBounds;
447
- /**
448
- * {@link flattenChildrenProp}, narrowed to the children this node will
449
- * actually lay out — a 3D or audio child sits in the same `children` prop but
450
- * takes no part in 2D layout, so it can't inform the size defaults either.
451
- */
219
+ /** {@link flattenChildrenProp} narrowed to children that take part in 2D layout (not 3D or audio). */
452
220
  protected static flowChildrenProp(props: {
453
221
  children?: unknown;
454
222
  } | undefined): Node2D[];
455
- /**
456
- * True if any of `children` requests `"fill"` on `axis` — the signal a
457
- * component's size default reads to decide whether hugging on that axis
458
- * would strand the child with no space to fill into.
459
- */
223
+ /** True if any child requests `"fill"` on `axis`, so a size default can avoid hugging a child that would have nothing to fill. */
460
224
  protected static hasFillChild(children: Node2D[], axis: "width" | "height"): boolean;
461
- /**
462
- * Default for `width`/`height`: hug-to-content when the node is given
463
- * children, fill-the-parent when it's empty. Called once from the
464
- * constructor (skipped when `flex` is set, since that already implies
465
- * 'fill'); `component2d` replaces it with the component rule.
466
- */
225
+ /** Hug when given children, fill when empty. Skipped when `flex` is set (implies `'fill'`); `component2d` replaces it with the component rule. */
467
226
  protected applyDefaultSize(props?: NodeConfig<any, P>): void;
468
227
  /**
469
- * Animate `x`/`y` to the given position, along `path`, or onto another node.
470
- * `pivot` (optional) sets {@link Node2DProps.transformOrigin} — the point
471
- * later rotate/scale turn about — independent of the node's own permanent
472
- * {@link pivot}, and it carries forward like any other prop until something
473
- * restates it.
228
+ * Animate `x`/`y` to a position, along `path`, or onto another node. `pivot` sets
229
+ * {@link Node2DProps.transformOrigin} (carried forward until restated), not the permanent {@link pivot}.
474
230
  *
475
- * `path` replaces the destination rather than qualifying it — stating both is
476
- * an error, since the path's own end is where the move ends — and the node
477
- * walks it by **arc length**, so easing shapes the travel rather than the
478
- * curve's parameter. Its coordinates *are* `x`/`y` values, in the same y-up
479
- * space a `PathCommand[]` is authored in library-wide: the path says where
480
- * the node is at `t`, not how far it has come from wherever the previous
481
- * command left it.
482
- *
483
- * `target` is a node id and `targetAnchor` the point of its box to land on
484
- * (centre when absent), resolved when the command is built — so moving the
485
- * target re-aims the move with nothing to re-author, and a target absent at
486
- * that moment leaves the node where it is. Like `path`, it replaces `x`/`y`.
487
- * Given a `path` as well, the path is turned and scaled about its own start
488
- * until its end lands on the target, which is exact where the two already
489
- * agree and keeps the curve's shape where the target has since moved.
231
+ * `path` or `target` replaces the `x`/`y` destination (stating both is an error). A path is walked by arc
232
+ * length and its coordinates are `x`/`y` values in the library-wide y-up space. `target` is a node id and
233
+ * `targetAnchor` the point of its box (centre when absent), resolved when the command is built; an absent
234
+ * target leaves the node in place. With both, the path is turned and scaled about its start until its end lands on the target.
490
235
  *
491
236
  * @example
492
237
  * node.moveTo({ data: { x: 200, y: 100, pivot: 'topRight' }, duration: 0.5 });
@@ -503,45 +248,26 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
503
248
  }> & {
504
249
  duration: number;
505
250
  }): Command<P>;
506
- /** Animate `opacity` to the target value, in `[0, 1]`. */
507
251
  fadeTo(args: CommandArgs<{
508
252
  opacity: number;
509
253
  }> & {
510
254
  duration: number;
511
255
  }): Command<P>;
512
- /**
513
- * Animate `rotation` to the target angle (degrees, clockwise). `pivot`
514
- * (optional) behaves as in {@link moveTo}.
515
- *
516
- * @example
517
- * node.rotateTo({ data: { rotation: 180, pivot: 'topRight' }, duration: 0.6 });
518
- */
256
+ /** Animate `rotation` (degrees, clockwise); `pivot` behaves as in {@link moveTo}. */
519
257
  rotateTo(args: CommandArgs<{
520
258
  rotation: number;
521
259
  pivot?: Alignment;
522
260
  }> & {
523
261
  duration: number;
524
262
  }): Command<P>;
525
- /**
526
- * Animate `scale` to the target factor. `pivot` (optional) behaves as in
527
- * {@link moveTo}.
528
- *
529
- * @example
530
- * node.scaleTo({ data: { scale: 2, pivot: 'topRight' }, duration: 0.4 });
531
- */
263
+ /** Animate `scale`; `pivot` behaves as in {@link moveTo}. */
532
264
  scaleTo(args: CommandArgs<{
533
265
  scale: number;
534
266
  pivot?: Alignment;
535
267
  }> & {
536
268
  duration: number;
537
269
  }): Command<P>;
538
- /**
539
- * Animate the box: `width`, `height` and `padding`, whichever are given.
540
- * A size keyword (`'fill'`, `'hug'`) snaps; a number interpolates.
541
- *
542
- * @example
543
- * node.layoutTo({ data: { width: 640, height: 360 }, duration: 0.5 });
544
- */
270
+ /** Animate `width`, `height` and `padding`, whichever are given. A size keyword (`'fill'`, `'hug'`) snaps; a number interpolates. */
545
271
  layoutTo(args: CommandArgs<{
546
272
  width?: SizeInput;
547
273
  height?: SizeInput;
@@ -549,32 +275,19 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
549
275
  }> & {
550
276
  duration: number;
551
277
  }): Command<P>;
552
- /**
553
- * Swell to `factor` times the node's size and settle back: a nudge of the
554
- * eye toward it. It ends as it began, so nothing after it needs restating.
555
- *
556
- * @example
557
- * node.pulse({ data: { factor: 1.3 }, duration: 0.6 });
558
- */
278
+ /** Swell to `factor` times the size and settle back; ends as it began. */
559
279
  pulse(args: CommandArgs<{
560
280
  factor?: number;
561
281
  }> & {
562
282
  duration: number;
563
283
  }): Command<P>;
564
- /**
565
- * Rock about the node's own turn, `angle` degrees each way for `turns`
566
- * swings, building up and dying away. It ends as it began.
567
- *
568
- * @example
569
- * node.wiggle({ data: { angle: 10, turns: 4 }, duration: 0.8 });
570
- */
284
+ /** Rock about the node's own turn, `angle` degrees each way for `turns` swings, building up and dying away; ends as it began. */
571
285
  wiggle(args: CommandArgs<{
572
286
  angle?: number;
573
287
  turns?: number;
574
288
  }> & {
575
289
  duration: number;
576
290
  }): Command<P>;
577
- /** Animate the `effects` stack to another one. */
578
291
  effectTo(args: CommandArgs<{
579
292
  effects: Effect;
580
293
  }> & {
@@ -595,59 +308,30 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
595
308
  get centerLeft(): Vector2;
596
309
  get centerRight(): Vector2;
597
310
  /**
598
- * This node's local transform in canvas (y-down) space — position, rotation,
599
- * scale, about its origin. Composed with the parent chain by
600
- * {@link worldMatrix}, and the matrix every world-space *reading* of the node
601
- * comes from: {@link global}, `runtime/node-picking.ts`, and so any editor
602
- * overlay drawn on top of a scene.
603
- *
604
- * **It is flat, deliberately, and the renderer's is not.** A node that
605
- * mirrors or tilts ({@link Node2DProps.rotationX}, {@link Node2DProps.perspective},
606
- * {@link Node2DProps.flipHorizontal}, …) is *painted* through a projected
607
- * matrix, but goes on measuring, reporting and hit-testing as the upright
608
- * rectangle it was — see {@link applyTransform}.
311
+ * This node's local transform in canvas (y-down) space; {@link worldMatrix} composes it up the chain, and
312
+ * every world-space reading comes from it ({@link global}, `runtime/node-picking.ts`, editor overlays).
609
313
  *
610
- * That is a choice, not an oversight. Everything that reads a node's box
611
- * reads it to put a handle on: a selection outline, a resize grip, a rotation
612
- * dial, `other.global.topRight` as an alignment target. Those all mean
613
- * something on a rectangle and stop meaning it on a trapezoid — a "width"
614
- * handle on a foreshortened edge does not correspond to any number, and a
615
- * corner that has swung behind the viewer has no screen position at all.
616
- * Letting the projection through would make the tilt a thing that quietly
617
- * breaks every other tool in the editor; keeping the geometry flat makes it
618
- * exactly what it looks like, a way of drawing the node.
314
+ * Deliberately flat: a node that mirrors or tilts is painted through a projected matrix (see
315
+ * {@link applyTransform}) but measures and hit-tests as its upright rectangle, because handles, outlines and
316
+ * alignment targets mean nothing on a trapezoid (a foreshortened "width" edge, a corner behind the viewer).
619
317
  */
620
318
  /** @internal Composed with the camera scopes in between by `runtime/node-picking.ts`. */
621
319
  _localMatrix(): Matrix2D;
622
320
  /** @internal The slot {@link _placementOf} puts this node in, from its parent. */
623
321
  _placement(): ChildPlacement | null;
624
- /**
625
- * The slot this node places `child` in beyond its layout box, or `null` —
626
- * the default — when the box says it all. A layout that turns, scales or
627
- * fades each of its children answers here, and the renderer, picking and
628
- * `global` all follow. See {@link ChildPlacement}.
629
- */
322
+ /** The slot this node places `child` in beyond its layout box, or `null` when the box says it all. The renderer, picking and `global` follow it. See {@link ChildPlacement}. */
630
323
  /** @internal */
631
324
  _placementOf(_child: Node2D): ChildPlacement | null;
632
- /**
633
- * The coordinates `child`'s `x`/`y` are in, or `null` — the default — when
634
- * they are pixels. A `null` child asks for one that is not here yet: where
635
- * a host would drop or paste it. See {@link ChildPlane}.
636
- */
325
+ /** The coordinates `child`'s `x`/`y` are in, or `null` for pixels. A `null` child asks for a not-yet-added one (where a host would drop or paste it). See {@link ChildPlane}. */
637
326
  /** @internal */
638
327
  _planeOf(_child: Node2D | null): ChildPlane | null;
639
328
  /**
640
- * Where its own layout would centre a child of `size` that is not here yet,
641
- * y-down from its centre, or `null` when it arranges its children in a run
642
- * or a grid (the run decides) or has not laid any out.
329
+ * Where its own layout would centre a not-yet-added child of `size`, y-down from its centre; `null` when it
330
+ * arranges children in a run or grid (the run decides) or has laid none out.
643
331
  */
644
332
  /** @internal */
645
333
  _slotFor(size: Size2D): Vector2 | null;
646
- /**
647
- * Where its centre sits from the point its `x`/`y` place, in its parent's
648
- * frame, y-down, at `rotation` and `scale`: what turning or scaling about an
649
- * off-centre pivot adds.
650
- */
334
+ /** Where its centre sits from the point `x`/`y` place, in the parent's frame (y-down), at `rotation` and `scale`: what turning about an off-centre pivot adds. */
651
335
  /** @internal */
652
336
  _centreShift(rotation?: number, scale?: number): Vector2;
653
337
  /** The points an editor may drag on this node, where they sit now; none by default. See {@link NodeHandle}. */
@@ -657,75 +341,35 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
657
341
  /** @internal */
658
342
  _handleValue(_prop: string, _at: Vector2): Vector2 | null;
659
343
  private readonly _offsetScratch;
660
- /**
661
- * This node's `x`/`y` as the pixel offset its parent sees. Every position
662
- * read goes through here, which is what keeps paint, picking and `global`
663
- * agreeing under a {@link ChildPlane}. The result is reused: read it at once.
664
- */
344
+ /** `x`/`y` as the pixel offset the parent sees; every position read goes through here so paint, picking and `global` agree under a {@link ChildPlane}. The result is reused: read it at once. */
665
345
  /** @internal */
666
346
  _offset(): Vector2;
667
347
  /**
668
- * The flat part of this node's slot, as the frame its own `x`/`y` move in —
669
- * the layout box's centre, turned and scaled by the slot. `null` when it has
670
- * no slot. With `paint`, the slot's tilt as well, which only paint sees.
348
+ * The flat part of this node's slot: the layout box's centre turned and scaled by the slot, or `null` with
349
+ * no slot. With `paint`, also the slot's tilt, which only paint sees.
671
350
  */
672
351
  /** @internal Also the plane `runtime/node-picking.ts` drags a placed node across. */
673
352
  _slotMatrix(paint?: boolean): Matrix2D | null;
674
353
  /** @internal {@link _slotMatrix} in a space, where the slot's tilt and depth are geometry. */
675
354
  _slotAffine(): Affine3 | null;
676
- /**
677
- * The point this node's transform turns about, normalised: `transformOrigin`
678
- * where one is set, the alignment-derived `pivot` otherwise. One resolution,
679
- * read by {@link _localMatrix} and {@link applyTransform} alike.
680
- */
355
+ /** `transformOrigin` where set, else the alignment-derived `pivot`; read by {@link _localMatrix} and {@link applyTransform} alike. */
681
356
  private _transformOrigin;
682
357
  private readonly _projectionScratch;
683
- /**
684
- * This node's out-of-plane fields, gathered for the matrix builders — and for
685
- * the backface test. A space root overrides it, because its 3D props aim the
686
- * camera rather than turn the root.
687
- */
358
+ /** Out-of-plane fields for the matrix builders and the backface test. A space root overrides it: its 3D props aim the camera rather than turn the root. */
688
359
  protected _projection(): Projection3D;
689
360
  /** @internal This node's transform in its parent's 3D frame, when it is inside a space. See `node-space.ts`. */
690
361
  _spaceMatrix(): Affine3;
691
- /**
692
- * This node's full transform in canvas (y-down) world space — the product of
693
- * every ancestor's local matrix from the root down to this node. Walks the
694
- * live parent chain on every call, reading each node's transform props.
695
- */
362
+ /** Product of every ancestor's local matrix, root down; walks the live parent chain per call. */
696
363
  protected worldMatrix(): Matrix2D;
697
364
  /**
698
- * Resolved world-space transform — the same alignment points and metrics as the
699
- * local getters (`center`, `topRight`, `rotation`, …) but folded through the
700
- * full ancestor chain, so values are absolute scene coordinates rather than
701
- * parent-relative ones. See {@link WorldTransform}. Every field is reactive.
702
- *
703
- * @example
704
- * // Read another node's absolute corner, regardless of its parent:
705
- * const p = other.global.topRight; // world-space {x, y}
706
- *
707
- * ### Reading vs. placing
708
- * `global` is for *reading* world coordinates. `x`/`y` (and the alignment props)
709
- * are **parent-relative**, so assigning a world value to them does not by
710
- * itself place this node in world space — it offsets it from this node's own
711
- * parent. To land exactly on another node regardless of either parent,
712
- * subtract this node's parent's world contribution:
365
+ * Absolute scene coordinates for the alignment points and metrics, folded through the ancestor chain; every
366
+ * field is reactive. See {@link WorldTransform}.
713
367
  *
714
- * @example
715
- * // Place this node's origin exactly on `other`, any parent:
716
- * new Rect({
717
- * x: () => other.global.x - (myParent.global.x),
718
- * y: () => other.global.y - (myParent.global.y),
719
- * });
720
- *
721
- * When both nodes share the same parent origin (e.g. both at the scene root),
722
- * `x: () => other.global.x` already lands on target with no compensation.
368
+ * For reading only: `x`/`y` are parent-relative, so landing on `other` under a different parent needs
369
+ * `x: () => other.global.x - myParent.global.x` (a shared parent origin needs no compensation).
723
370
  */
724
371
  get global(): WorldTransform;
725
- /**
726
- * The `x`/`y` that put this node on `anchor` of the node `id` names, in this
727
- * tree — or `null` when there is no such 2D node here right now.
728
- */
372
+ /** The `x`/`y` that put this node on `anchor` of node `id`, or `null` if no such 2D node is here right now. */
729
373
  private _pointOnNode;
730
374
  addChildAt(args: CommandArgs<{
731
375
  child: Node;
@@ -750,254 +394,103 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
750
394
  duration: number;
751
395
  }): Command<Record<string, never>>;
752
396
  private readonly _transformScratch;
753
- /** Rolling history for the backward-difference velocity estimate. Allocated once (not per frame); mutated in place by {@link _sampleMotion}. */
397
+ /** Allocated once; mutated in place by {@link _sampleMotion}. */
754
398
  private readonly _motionHistory;
755
399
  /** Reused per-node state handed to `ctx.begin()` (mirrors `_transformScratch`). */
756
400
  private readonly _renderState;
757
401
  /**
758
- * Compute this frame's motion (velocity/direction/speed/angular/scale) into
759
- * {@link _renderState} as a backward difference against the previous frame,
760
- * and roll the history forward. Velocity is `0`/`{0,0}` when no trustworthy
761
- * delta exists — the first frame, or after a non-monotonic time jump (only
762
- * `0 < dt <= MAX` is trusted, so a scrub that resets the clock reads as
763
- * "unknown" rather than a spurious huge velocity). The world position
764
- * matches {@link applyTransform} (`layoutBounds + x`, `layoutBounds - y`,
765
- * y-down). Called via {@link _sample} every frame; layout-dependent fields
766
- * (`rects`/`elapsed`) are filled in by {@link renderState} at draw time.
402
+ * Computes motion into {@link _renderState} as a backward difference against the previous frame, then rolls the
403
+ * history. Velocity is zero when no trustworthy delta exists (first frame, or a non-monotonic time jump: only
404
+ * `0 < dt <= MAX` is trusted, so a scrub doesn't read as a huge velocity). World position matches
405
+ * {@link applyTransform} (y-down).
767
406
  */
768
407
  protected _sampleMotion(): void;
769
408
  /**
770
- * Push this node's transform (position, scale, rotate, opacity, effects).
771
- *
772
- * The decomposed fields are the whole story for a node in its own plane, and
773
- * that path is untouched: the backend translates, rotates and scales exactly
774
- * as it always has. A node that mirrors or tilts hands over a precomposed
775
- * {@link TransformState.matrix} instead, built by the same `localMatrix`
776
- * {@link _localMatrix} calls — with the out-of-plane half switched on.
777
- *
778
- * **This is the one place that half is applied.** The mirrors and the tilt
779
- * are paint, not geometry: the node goes on measuring and hit-testing as the
780
- * upright rectangle it was, and only what is drawn is projected. See
781
- * {@link _localMatrix} for why.
409
+ * Pushes this node's transform. A node in its own plane passes the decomposed fields; one that mirrors or tilts
410
+ * passes a precomposed {@link TransformState.matrix}. This is the one place the out-of-plane half is applied:
411
+ * mirrors and tilt are paint, not geometry (see {@link _localMatrix}).
782
412
  */
783
413
  protected applyTransform(ctx: RenderContext2D): void;
784
414
  /** What the node paints under its children, between the transform push and the children render: the root's fill. */
785
415
  protected renderSelf(ctx: RenderContext2D): void;
786
416
  /** What the node paints over its children, clipped to its silhouette: the root's overlay. */
787
417
  protected renderOverlay(ctx: RenderContext2D): void;
788
- /**
789
- * This node's outline as a {@link Clip}: the boundary `clip` confines its
790
- * children to, and the silhouette its backdrop effects are confined to.
791
- * `null` (the default) is no outline, so its children render unclipped and
792
- * it gets no backdrop effects. A component answers with the shape its
793
- * `render` paints.
794
- */
418
+ /** Outline as a {@link Clip}: confines children when `clip` is set and bounds backdrop effects. `null` (default) is no outline. A component answers with the shape its `render` paints. */
795
419
  protected clipSelf(): Clip | null;
796
420
  /**
797
- * The camera scope this node pushes around its **children** (`beginCamera`),
798
- * or `null` when it pushes none. Only {@link Canvas2D} and a component whose
799
- * `render` opens a camera answer, each non-null exactly when it actually
800
- * opens one — so a consumer can reproduce the renderer's transform *and* its
801
- * viewport clip without knowing which types have a camera.
802
- *
803
- * Read by `runtime/node-picking.ts`: a camera is applied at render time only,
804
- * so it is not part of {@link worldMatrix}, and a node's on-screen box would
805
- * be offset without it. `@internal`.
421
+ * The camera scope pushed around this node's children (`beginCamera`), or `null`; non-null exactly when the node
422
+ * opens one, so a consumer can reproduce the renderer's transform and viewport clip. Read by
423
+ * `runtime/node-picking.ts`: a camera applies at render time only, so it isn't part of {@link worldMatrix}.
806
424
  */
807
425
  /** @internal */
808
426
  _cameraScope(): CameraScope | null;
809
- /**
810
- * The camera this node opens a 2.5D space with, or `null` when it opens none.
811
- * Only a space root overrides it: its children, and theirs, are then placed
812
- * in one 3D frame and seen through this camera. See `node-space.ts`.
813
- */
427
+ /** The camera this node opens a 2.5D space with, or `null`; only a space root overrides it. See `node-space.ts`. */
814
428
  /** @internal */
815
429
  _spaceCamera(): SpaceCamera | null;
816
- /**
817
- * Whether this node hands its children on into the space it sits in. False
818
- * for a node that composites its children itself — a mask, a boolean, a
819
- * nested camera — which flattens its subtree into its own plane, where the
820
- * per-node 3D rules apply again. Picking reads it; the renderer gets the same
821
- * answer because such a node never reaches the base {@link renderChildren}.
822
- */
430
+ /** Whether children pass on into the space this node sits in. False for a node that composites its children itself (mask, boolean, nested camera), flattening them into its own plane. Picking reads it; the renderer agrees because such a node never reaches the base {@link renderChildren}. */
823
431
  /** @internal */
824
432
  _rendersChildrenInSpace(): boolean;
825
433
  /** @internal Set by the parent for the length of this node's render while it is inside a space. */
826
434
  _spaceFrame: SpaceFrame | null;
827
- /**
828
- * Whether the renderer confines this node's children to its own box — either
829
- * because `clip` is set *and* the node has an outline to clip to (a bare
830
- * `clip` with no {@link clipSelf} is a no-op, see {@link applyClip}), or
831
- * because it opens a camera scope, which clips to the viewport rect.
832
- *
833
- * Read by `runtime/node-picking.ts`: a point outside a confining node cannot
834
- * hit anything inside it, so the whole subtree is skipped. `@internal`.
835
- */
435
+ /** Whether the renderer confines children to this node's box: `clip` set with an outline to clip to (a bare `clip` without {@link clipSelf} is a no-op, see {@link applyClip}), or a camera scope clipping to the viewport. Picking skips a whole subtree outside a confining node. */
836
436
  /** @internal */
837
437
  _confinesChildren(): boolean;
838
438
  /**
839
- * Whether `local` — a point in this node's local space (centred on the node,
840
- * y-up, rotation and scale already removed) — is inside the node, within
841
- * `tolerance` scene units of its edge.
842
- *
843
- * The default is the layout box, which is the right answer for containers,
844
- * text, and media: their box *is* their extent. A component narrows it to
845
- * the outline its `render` paints.
846
- *
847
- * `tolerance` is grab-slop, applied outward. An editor passes its
848
- * zoom-corrected pixel slop so the grab area stays constant on screen
849
- * regardless of preview zoom.
439
+ * Whether `local` (node-centred, y-up, rotation and scale removed) is inside the node within `tolerance` scene
440
+ * units of its edge, applied outward as grab-slop (an editor passes a zoom-corrected value). Defaults to the
441
+ * layout box; a component narrows it to the outline its `render` paints.
850
442
  */
851
443
  protected hitTestSelf(local: Vector2, tolerance: number): boolean;
852
444
  /**
853
- * The extent of this node's ink in its own local space — what an editor draws
854
- * a selection box around, and the region the default {@link hitTestSelf}
855
- * grabs.
856
- *
857
- * The returned {@link BoxBounds} is **y-up and relative to the node's own
858
- * centre**: `x`/`y` are where the ink's centre sits relative to the node,
859
- * normally `(0, 0)`. That is a different space from `layoutBounds`, which is
860
- * the same type but canvas y-down and relative to the parent — see
861
- * `BoxBounds`, which deliberately does not encode a space.
862
- *
863
- * Defaults to the layout box, centred on the node, which is right for every
864
- * node whose drawing fills its cell. It is a separate seam from the layout
865
- * rect because for some nodes the two genuinely differ: a boolean group or
866
- * a mask is drawn where its children's ink is, which can be both a different
867
- * size *and* off-centre from its own cell. A component's `bounds` answers
868
- * here, fixing the box and the grab region together without perturbing layout.
445
+ * Extent of the node's ink in its own space, **y-up and relative to the node's centre** (unlike `layoutBounds`,
446
+ * canvas y-down relative to the parent): what an editor boxes and the default {@link hitTestSelf} grabs.
447
+ * Defaults to the layout box. Separate from the layout rect because a boolean group or mask draws where its
448
+ * children's ink is, possibly off-centre; a component's `bounds` answers here without perturbing layout.
869
449
  */
870
450
  /** @internal */
871
451
  _localBounds(): BoxBounds;
872
452
  /** @internal Dispatch seam so `node-picking.ts` can reach the protected override. */
873
453
  _hitTestSelf(local: Vector2, tolerance: number): boolean;
874
- /**
875
- * Open `clipSelf()`'s outline as a clip scope, confining whatever is drawn
876
- * until the matching `ctx.endClip()` to the shape. Returns `true` when a
877
- * clip was actually opened (so the caller knows to close it) and `false`
878
- * when the node has no outline (the default).
879
- */
454
+ /** Opens `clipSelf()`'s outline as a clip scope; returns whether one was opened (so the caller closes it). */
880
455
  protected applyClip(ctx: RenderContext2D): boolean;
881
- /**
882
- * Apply backdrop effects (any `mode: "backdrop"` effect — blur, grayscale, …;
883
- * plus magnify and backdrop shader) beneath this node, clipped to its
884
- * silhouette, before the node's own content is drawn — so the content
885
- * underneath is filtered/warped while the node's own edges stay sharp. One
886
- * backdrop effect scope, confined to the silhouette clip, runs the lot; the
887
- * renderer routes each effect to a filter or shader pass. A no-op for nodes
888
- * without a {@link clipSelf} outline (there's no silhouette to confine to).
889
- */
456
+ /** Backdrop effects (blur, magnify, backdrop shader, ...) beneath the node, confined to its silhouette, so content underneath is filtered while the node's own edges stay sharp. One scope runs them all; no-op without a {@link clipSelf} outline. */
890
457
  private applyBackdropEffects;
891
- /**
892
- * Run `body` (this node's own painting + children) inside the node's effect
893
- * scopes, so effects behave identically however a node draws. The caller
894
- * has already pushed the node's transform ({@link applyTransform}).
895
- * Outermost-first: {@link applyBackdropEffects} beneath the node, confined
896
- * to its {@link clipSelf} silhouette, then a `foreground` effect scope
897
- * capturing everything `body` paints.
898
- */
458
+ /** Runs `body` (own painting + children) inside the effect scopes, outermost first: {@link applyBackdropEffects} beneath the node, then a `foreground` scope capturing everything `body` paints. The caller has already pushed {@link applyTransform}. */
899
459
  protected renderContentWithEffects(ctx: RenderContext2D, body: () => void): void;
900
460
  protected renderChildren(ctx: RenderPass2D): void;
901
- /**
902
- * Paint the children placed in `frame`, far to near rather than in authored
903
- * order — each with its frame set for exactly the length of its own render,
904
- * so a node reached any other way (a mask's children, a `Tex.surface`
905
- * source) draws flat.
906
- */
461
+ /** Paints children placed in `frame` far to near, each with its frame set only for its own render, so a node reached any other way (a mask's children, a `Tex.surface` source) draws flat. */
907
462
  /** @internal A space root opens its space through this. */
908
463
  protected _renderInSpace(ctx: RenderPass2D, frame: SpaceFrame): void;
909
464
  /** Run `paint` confined to `cut` — the part of the node in front of the lens — when there is one. */
910
465
  private _paintInFront;
911
- /**
912
- * This node's per-frame render state, resolved for the scope {@link render}
913
- * is about to open.
914
- *
915
- * Motion was already sampled when the clock advanced; only the
916
- * layout-dependent fields are filled in here, where layout is current.
917
- */
466
+ /** Per-frame render state for the scope {@link render} opens. Motion was sampled when the clock advanced; only layout-dependent fields are filled here. */
918
467
  private renderState;
919
- /**
920
- * Reference rects for fills with `space:'parent'`, expressed in this node's
921
- * local space (origin = this node's positioned centre, y-down to match the
922
- * canvas). The viewport (`space:'global'`) is resolved by the renderer, which
923
- * knows the surface size. Rotation/scale of this node are not folded in —
924
- * the rect is the axis-aligned parent box, which is what gradients expect.
925
- */
468
+ /** Reference rects for `space:'parent'` fills, in this node's local space (origin at its positioned centre, y-down). The viewport (`space:'global'`) is the renderer's job. This node's rotation/scale aren't folded in: the rect is the axis-aligned parent box, which gradients expect. */
926
469
  protected _spaceRects(): SpaceRects;
927
- /**
928
- * Draw this node and its subtree: the skip checks, then this node's draw
929
- * scope around {@link renderContent}.
930
- *
931
- * Takes a {@link RenderPass2D} rather than a bare {@link RenderContext2D}
932
- * because opening this node's draw scope is *this* method's job; what it
933
- * calls is handed the narrower surface, so nothing below can open one.
934
- */
470
+ /** Draws this node and its subtree: skip checks, then this node's draw scope around {@link renderContent}. Takes a {@link RenderPass2D} because opening the scope is this method's job; callees get the narrower surface so nothing below can open one. */
935
471
  render(ctx: RenderPass2D): void;
936
- /**
937
- * Everything this node paints: its transform, its effect envelope, its own
938
- * drawing, its children and its overlay. A component's `render` replaces it,
939
- * keeping every guard {@link render} performs above it.
940
- */
472
+ /** Everything this node paints: transform, effect envelope, own drawing, children, overlay. A component's `render` replaces it, keeping every guard {@link render} performs above it. */
941
473
  protected renderContent(ctx: RenderPass2D): void;
942
474
  /** Whether the node shows its back — to the space's camera when it is in one, else by its own tilt. */
943
475
  private _facesAway;
944
476
  /** What {@link measure} hands {@link layoutChildren} within a pass; consumed there. */
945
477
  private _flowMeasure;
946
- /**
947
- * The content box its children were last placed in, y-down from this
948
- * node's centre, and the flow that placed them: what {@link _slotFor}
949
- * answers from. A component's flow layout records it too (`Flow.layout`).
950
- */
478
+ /** The content box children were last placed in (y-down from this node's centre) and the flow that placed them; what {@link _slotFor} answers from. A component's flow layout records it too (`Flow.layout`). */
951
479
  /** @internal */
952
480
  _childSpace: ChildSpace | null;
953
481
  private _flowWarned;
954
- /**
955
- * Record this node's allocated bounds without touching children.
956
- *
957
- * Compared field by field, because every caller builds a fresh object literal,
958
- * so identity always differs — including on every frame of a node that is
959
- * simply sitting still. Skipping the write keeps the object stable for the
960
- * aliasing reason below.
961
- */
482
+ /** Records the allocated bounds without touching children. Compared field by field (callers build fresh literals, so identity always differs, even for a node sitting still) to keep the object stable for the aliasing reason below. */
962
483
  protected setLayoutBounds(rect: BoxBounds): void;
963
- /**
964
- * The children this node lays out itself — its 2D children, minus the hidden
965
- * ones. Every measure and layout pass in a container iterates *this*, not
966
- * `children`.
967
- *
968
- * Returns the live array untouched in the common case, so an ordinary tree
969
- * allocates nothing per pass.
970
- */
484
+ /** Children this node lays out itself: its 2D children minus hidden ones. Measure and layout iterate this, not `children`. Returns the live array when nothing is filtered, so an ordinary tree allocates nothing per pass. */
971
485
  flowChildren(): Node2D[];
972
- /**
973
- * The inset children are laid out within. A node with a stroke to clear adds
974
- * the part of it that intrudes (see `Paint.inset`).
975
- */
486
+ /** The inset children are laid out within; a node with a stroke to clear adds the part that intrudes (see `Paint.inset`). */
976
487
  effectivePadding(): InsetsResolved;
977
- /**
978
- * How this node arranges its children: centred freeform. The root answers
979
- * with its own layout props; a component lays its children out with `Flow`.
980
- */
488
+ /** Centred freeform by default. The root answers with its layout props; a component lays children out with `Flow`. */
981
489
  protected flowArrangement(): FlowSettings;
982
- /** Record `rect`, then place the flow children in it — see {@link layoutChildren}. */
983
490
  layout(rect: BoxBounds, scope: MeasureContext2D): void;
984
- /**
985
- * Place the flow children in `rect`'s content box by {@link flowArrangement}.
986
- *
987
- * Reuses what {@link measure} found when the box is the one it measured in —
988
- * or, on an axis that hugs, exactly what it hugged — and measures again
989
- * otherwise: a parent laying this node out at a size it did not measure it
990
- * for would leave the children arranged for the wrong box.
991
- */
491
+ /** Places flow children in `rect`'s content box by {@link flowArrangement}. Reuses {@link measure}'s result when the box is the one it measured in (or exactly what an axis hugged), else re-measures: a box the node wasn't measured for would leave the children arranged wrong. */
992
492
  protected layoutChildren(rect: BoxBounds, scope: MeasureContext2D): void;
993
- /**
994
- * Resolve `width`/`height`, measuring the flow children by
995
- * {@link flowArrangement}: a `'hug'` axis wraps what they come to, plus this
996
- * node's padding. What it finds is kept for {@link layoutChildren}.
997
- *
998
- * Only flow children are measured: a canvas-pinned child is sized against the
999
- * canvas, so hugging it would shrink-wrap a box this node never contains.
1000
- */
493
+ /** Resolves `width`/`height`: a `'hug'` axis wraps the flow children (by {@link flowArrangement}) plus padding; the result is kept for {@link layoutChildren}. Only flow children are measured: a canvas-pinned child is sized against the canvas, so hugging it would wrap a box this node never contains. */
1001
494
  measure(constraints: SizeConstraints, scope: MeasureContext2D): Partial<Size2D>;
1002
495
  reparent(args: CommandArgs<{
1003
496
  newParent: Node2D;
@@ -1012,9 +505,6 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
1012
505
  }
1013
506
  /** The 2D node `id` names anywhere in the tree `from` is in, or `null`. */
1014
507
  export declare function findNode2D(from: Node, id: string): Node2D | null;
1015
- /**
1016
- * Where `node`'s frame sits in `host`'s, wherever each is in the tree: its
1017
- * centre as an offset (y-up) from `host`'s, and its turn and scale relative to it.
1018
- */
508
+ /** Where `node`'s frame sits in `host`'s: its centre as a y-up offset, and its turn and scale relative to it. */
1019
509
  export declare function frameIn(host: Node2D, node: Node2D): Vector2 & Pick<WorldTransform, "rotation" | "scale">;
1020
510
  //# sourceMappingURL=node2d.d.ts.map