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

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 (1133) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +201 -201
  3. package/NOTICE +49 -48
  4. package/README.md +91 -91
  5. package/dist/assets/asset-index.js.map +1 -1
  6. package/dist/assets/catalog.js.map +1 -1
  7. package/dist/assets/errors.js.map +1 -1
  8. package/dist/assets/index.js.map +1 -1
  9. package/dist/assets/manager.d.ts.map +1 -1
  10. package/dist/assets/manager.js +7 -5
  11. package/dist/assets/manager.js.map +1 -1
  12. package/dist/assets/manifest.js.map +1 -1
  13. package/dist/assets/record.js.map +1 -1
  14. package/dist/assets/scope.js.map +1 -1
  15. package/dist/attributes/audio/effects/chain.d.ts +73 -0
  16. package/dist/attributes/audio/effects/chain.d.ts.map +1 -0
  17. package/dist/attributes/audio/effects/chain.js +67 -0
  18. package/dist/attributes/audio/effects/chain.js.map +1 -0
  19. package/dist/attributes/audio/effects/implementations/echo.d.ts +14 -0
  20. package/dist/attributes/audio/effects/implementations/echo.d.ts.map +1 -0
  21. package/dist/attributes/audio/{filters → effects}/implementations/echo.js +2 -2
  22. package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
  23. package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
  24. package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
  25. package/dist/attributes/audio/{filters → effects}/implementations/gain.js +2 -2
  26. package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
  27. package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
  28. package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
  29. package/dist/attributes/audio/{filters → effects}/implementations/highpass.js +2 -2
  30. package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
  31. package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
  32. package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
  33. package/dist/attributes/audio/{filters → effects}/implementations/lowpass.js +2 -2
  34. package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
  35. package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
  36. package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
  37. package/dist/attributes/audio/{filters → effects}/implementations/tremolo.js +2 -2
  38. package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
  39. package/dist/attributes/audio/effects/index.d.ts +12 -0
  40. package/dist/attributes/audio/effects/index.d.ts.map +1 -0
  41. package/dist/attributes/audio/effects/index.js +4 -0
  42. package/dist/attributes/audio/effects/index.js.map +1 -0
  43. package/dist/attributes/audio/effects/registry.d.ts +36 -0
  44. package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
  45. package/dist/attributes/audio/effects/registry.js +80 -0
  46. package/dist/attributes/audio/effects/registry.js.map +1 -0
  47. package/dist/attributes/audio/effects/union.d.ts +14 -0
  48. package/dist/attributes/audio/effects/union.d.ts.map +1 -0
  49. package/dist/attributes/audio/effects/union.js +24 -0
  50. package/dist/attributes/audio/effects/union.js.map +1 -0
  51. package/dist/attributes/audio/ramp.d.ts +103 -0
  52. package/dist/attributes/audio/ramp.d.ts.map +1 -0
  53. package/dist/attributes/audio/ramp.js +246 -0
  54. package/dist/attributes/audio/ramp.js.map +1 -0
  55. package/dist/attributes/audio/request.d.ts +24 -13
  56. package/dist/attributes/audio/request.d.ts.map +1 -1
  57. package/dist/attributes/audio/request.js +4 -3
  58. package/dist/attributes/audio/request.js.map +1 -1
  59. package/dist/attributes/audio/schedule.d.ts +21 -13
  60. package/dist/attributes/audio/schedule.d.ts.map +1 -1
  61. package/dist/attributes/audio/schedule.js +42 -28
  62. package/dist/attributes/audio/schedule.js.map +1 -1
  63. package/dist/attributes/audio/sound.d.ts +15 -12
  64. package/dist/attributes/audio/sound.d.ts.map +1 -1
  65. package/dist/attributes/audio/sound.js +8 -10
  66. package/dist/attributes/audio/sound.js.map +1 -1
  67. package/dist/attributes/audio/transition.d.ts +33 -0
  68. package/dist/attributes/audio/transition.d.ts.map +1 -0
  69. package/dist/attributes/audio/transition.js +48 -0
  70. package/dist/attributes/audio/transition.js.map +1 -0
  71. package/dist/attributes/index.d.ts +4 -3
  72. package/dist/attributes/index.d.ts.map +1 -1
  73. package/dist/attributes/index.js +4 -7
  74. package/dist/attributes/index.js.map +1 -1
  75. package/dist/attributes/layout/alignment.js.map +1 -1
  76. package/dist/attributes/layout/index.js.map +1 -1
  77. package/dist/attributes/layout/insets.js.map +1 -1
  78. package/dist/attributes/layout/matrix2d.d.ts +2 -2
  79. package/dist/attributes/layout/matrix2d.js.map +1 -1
  80. package/dist/attributes/layout/size.js.map +1 -1
  81. package/dist/attributes/layout/space3d.js +1 -1
  82. package/dist/attributes/layout/space3d.js.map +1 -1
  83. package/dist/attributes/layout/transform3d.js.map +1 -1
  84. package/dist/attributes/layout/vector2.js.map +1 -1
  85. package/dist/attributes/layout/world-transform.js.map +1 -1
  86. package/dist/attributes/mask/boolean.js.map +1 -1
  87. package/dist/attributes/mask/mask.js.map +1 -1
  88. package/dist/attributes/properties/decorator.js.map +1 -1
  89. package/dist/attributes/properties/inputs.js.map +1 -1
  90. package/dist/attributes/properties/typed.d.ts +7 -7
  91. package/dist/attributes/properties/typed.d.ts.map +1 -1
  92. package/dist/attributes/properties/typed.js +6 -6
  93. package/dist/attributes/properties/typed.js.map +1 -1
  94. package/dist/attributes/render3d/orbit.js.map +1 -1
  95. package/dist/attributes/shape/corners/corner-radius.d.ts +1 -2
  96. package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
  97. package/dist/attributes/shape/corners/corner-radius.js +1 -2
  98. package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
  99. package/dist/attributes/shape/corners/corner-style.js.map +1 -1
  100. package/dist/attributes/shape/corners/corners.js.map +1 -1
  101. package/dist/attributes/shape/corners/index.js.map +1 -1
  102. package/dist/attributes/shape/effects/backdrop.js.map +1 -1
  103. package/dist/attributes/shape/effects/chain.d.ts +96 -409
  104. package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
  105. package/dist/attributes/shape/effects/chain.js +93 -283
  106. package/dist/attributes/shape/effects/chain.js.map +1 -1
  107. package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
  108. package/dist/attributes/shape/effects/effect-data.js.map +1 -1
  109. package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
  110. package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
  111. package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
  112. package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
  113. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
  114. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
  115. package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
  116. package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
  117. package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
  118. package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
  119. package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
  120. package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
  121. package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
  122. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
  123. package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
  124. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
  125. package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
  126. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
  127. package/dist/attributes/shape/effects/implementations/blur.js +13 -5
  128. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
  129. package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
  130. package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
  131. package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
  132. package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
  133. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
  134. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
  135. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
  136. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
  137. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +96 -26
  138. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
  139. package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
  140. package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
  141. package/dist/attributes/shape/effects/implementations/curves.d.ts +20 -6
  142. package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
  143. package/dist/attributes/shape/effects/implementations/curves.js +26 -23
  144. package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
  145. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
  146. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
  147. package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
  148. package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
  149. package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
  150. package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
  151. package/dist/attributes/shape/effects/implementations/dither.js +26 -20
  152. package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
  153. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +46 -14
  154. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
  155. package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
  156. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
  157. package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
  158. package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
  159. package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
  160. package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
  161. package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
  162. package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
  163. package/dist/attributes/shape/effects/implementations/edges.js +17 -14
  164. package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
  165. package/dist/attributes/shape/effects/implementations/glass.d.ts +76 -19
  166. package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
  167. package/dist/attributes/shape/effects/implementations/glass.js +28 -22
  168. package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
  169. package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
  170. package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
  171. package/dist/attributes/shape/effects/implementations/glow.js +74 -72
  172. package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
  173. package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
  174. package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
  175. package/dist/attributes/shape/effects/implementations/grain.js +21 -18
  176. package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
  177. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
  178. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
  179. package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
  180. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
  181. package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
  182. package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
  183. package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
  184. package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
  185. package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
  186. package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
  187. package/dist/attributes/shape/effects/implementations/invert.js +15 -10
  188. package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
  189. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
  190. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
  191. package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
  192. package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
  193. package/dist/attributes/shape/effects/implementations/lut.d.ts +34 -7
  194. package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
  195. package/dist/attributes/shape/effects/implementations/lut.js +20 -16
  196. package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
  197. package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
  198. package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
  199. package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
  200. package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
  201. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
  202. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
  203. package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
  204. package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
  205. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
  206. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
  207. package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
  208. package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
  209. package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
  210. package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
  211. package/dist/attributes/shape/effects/implementations/outline.js +18 -17
  212. package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
  213. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
  214. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
  215. package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
  216. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
  217. package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
  218. package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
  219. package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
  220. package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
  221. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
  222. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
  223. package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
  224. package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
  225. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
  226. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
  227. package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
  228. package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
  229. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
  230. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
  231. package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
  232. package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
  233. package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
  234. package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
  235. package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
  236. package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
  237. package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
  238. package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
  239. package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
  240. package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
  241. package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
  242. package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
  243. package/dist/attributes/shape/effects/implementations/shader.js +42 -26
  244. package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
  245. package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
  246. package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
  247. package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
  248. package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
  249. package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
  250. package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
  251. package/dist/attributes/shape/effects/implementations/streak.js +19 -16
  252. package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
  253. package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
  254. package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
  255. package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
  256. package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
  257. package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
  258. package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
  259. package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
  260. package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
  261. package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
  262. package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
  263. package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
  264. package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
  265. package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
  266. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
  267. package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
  268. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
  269. package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
  270. package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
  271. package/dist/attributes/shape/effects/implementations/wave.js +26 -23
  272. package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
  273. package/dist/attributes/shape/effects/index.d.ts +4 -2
  274. package/dist/attributes/shape/effects/index.d.ts.map +1 -1
  275. package/dist/attributes/shape/effects/index.js +1 -1
  276. package/dist/attributes/shape/effects/index.js.map +1 -1
  277. package/dist/attributes/shape/effects/registry.d.ts +11 -0
  278. package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
  279. package/dist/attributes/shape/effects/registry.js +113 -102
  280. package/dist/attributes/shape/effects/registry.js.map +1 -1
  281. package/dist/attributes/shape/effects/spec.d.ts +229 -0
  282. package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
  283. package/dist/attributes/shape/effects/spec.js +178 -0
  284. package/dist/attributes/shape/effects/spec.js.map +1 -0
  285. package/dist/attributes/shape/effects/union.js.map +1 -1
  286. package/dist/attributes/shape/fill/blend.js.map +1 -1
  287. package/dist/attributes/shape/fill/chain.d.ts +7 -9
  288. package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
  289. package/dist/attributes/shape/fill/chain.js +9 -11
  290. package/dist/attributes/shape/fill/chain.js.map +1 -1
  291. package/dist/attributes/shape/fill/coerce.js.map +1 -1
  292. package/dist/attributes/shape/fill/color/constants.js.map +1 -1
  293. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  294. package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
  295. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  296. package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
  297. package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
  298. package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
  299. package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
  300. package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
  301. package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
  302. package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
  303. package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
  304. package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
  305. package/dist/attributes/shape/fill/implementations/shader.d.ts +27 -26
  306. package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
  307. package/dist/attributes/shape/fill/implementations/shader.js +20 -14
  308. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  309. package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
  310. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  311. package/dist/attributes/shape/fill/index.d.ts +1 -1
  312. package/dist/attributes/shape/fill/index.d.ts.map +1 -1
  313. package/dist/attributes/shape/fill/index.js.map +1 -1
  314. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  315. package/dist/attributes/shape/fill/media-preset.js.map +1 -1
  316. package/dist/attributes/shape/fill/registry.d.ts +1 -2
  317. package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
  318. package/dist/attributes/shape/fill/registry.js +1 -2
  319. package/dist/attributes/shape/fill/registry.js.map +1 -1
  320. package/dist/attributes/shape/fill/union.js.map +1 -1
  321. package/dist/attributes/shape/filters/chain.d.ts +2 -6
  322. package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
  323. package/dist/attributes/shape/filters/chain.js +1 -5
  324. package/dist/attributes/shape/filters/chain.js.map +1 -1
  325. package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -1
  326. package/dist/attributes/shape/filters/implementations/blur.js.map +1 -1
  327. package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -1
  328. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
  329. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
  330. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
  331. package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
  332. package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
  333. package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -1
  334. package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -1
  335. package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -1
  336. package/dist/attributes/shape/filters/index.js.map +1 -1
  337. package/dist/attributes/shape/filters/registry.d.ts +1 -1
  338. package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
  339. package/dist/attributes/shape/filters/registry.js +3 -3
  340. package/dist/attributes/shape/filters/registry.js.map +1 -1
  341. package/dist/attributes/shape/filters/union.d.ts +2 -3
  342. package/dist/attributes/shape/filters/union.d.ts.map +1 -1
  343. package/dist/attributes/shape/filters/union.js.map +1 -1
  344. package/dist/attributes/shape/path/anchors.js.map +1 -1
  345. package/dist/attributes/shape/path/bezier.js.map +1 -1
  346. package/dist/attributes/shape/path/index.js.map +1 -1
  347. package/dist/attributes/shape/path/measure.js.map +1 -1
  348. package/dist/attributes/shape/path/morph.js.map +1 -1
  349. package/dist/attributes/shape/path/ops.js.map +1 -1
  350. package/dist/attributes/shape/path/types.js.map +1 -1
  351. package/dist/attributes/shape/path/walk.js.map +1 -1
  352. package/dist/attributes/shape/shaders/index.d.ts +2 -0
  353. package/dist/attributes/shape/shaders/index.d.ts.map +1 -1
  354. package/dist/attributes/shape/shaders/index.js +2 -0
  355. package/dist/attributes/shape/shaders/index.js.map +1 -1
  356. package/dist/attributes/shape/shaders/language.d.ts +26 -0
  357. package/dist/attributes/shape/shaders/language.d.ts.map +1 -0
  358. package/dist/attributes/shape/shaders/language.js +20 -0
  359. package/dist/attributes/shape/shaders/language.js.map +1 -0
  360. package/dist/attributes/shape/shaders/pack.d.ts +25 -11
  361. package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
  362. package/dist/attributes/shape/shaders/pack.js +9 -4
  363. package/dist/attributes/shape/shaders/pack.js.map +1 -1
  364. package/dist/attributes/shape/shaders/resolve.d.ts +4 -5
  365. package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
  366. package/dist/attributes/shape/shaders/resolve.js +3 -6
  367. package/dist/attributes/shape/shaders/resolve.js.map +1 -1
  368. package/dist/attributes/shape/shaders/uniforms.d.ts +41 -0
  369. package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -0
  370. package/dist/attributes/shape/shaders/uniforms.js +0 -0
  371. package/dist/attributes/shape/shaders/uniforms.js.map +1 -0
  372. package/dist/attributes/shape/shadow/index.js.map +1 -1
  373. package/dist/attributes/shape/shadow/shadow.js.map +1 -1
  374. package/dist/attributes/shape/stroke/index.js.map +1 -1
  375. package/dist/attributes/shape/stroke/stroke.js.map +1 -1
  376. package/dist/attributes/shared/operators.js.map +1 -1
  377. package/dist/attributes/text/index.js.map +1 -1
  378. package/dist/attributes/text/ops.js.map +1 -1
  379. package/dist/attributes/text/types.js.map +1 -1
  380. package/dist/browser/chunks/{chunk-LKUYVFU3.js → chunk-4BDLFEOC.js} +1 -1
  381. package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
  382. package/dist/browser/chunks/chunk-7DB6BI27.js +6 -0
  383. package/dist/browser/chunks/chunk-7DB6BI27.js.map +7 -0
  384. package/dist/browser/chunks/chunk-IX53IFBD.js +13 -0
  385. package/dist/browser/chunks/chunk-IX53IFBD.js.map +7 -0
  386. package/dist/browser/chunks/{chunk-ZRPZPWZU.js → chunk-Q55UPA3E.js} +1 -1
  387. package/dist/browser/chunks/chunk-Q55UPA3E.js.map +7 -0
  388. package/dist/browser/component.js +1 -1
  389. package/dist/browser/experimental.js +1 -1
  390. package/dist/browser/experimental.js.map +4 -4
  391. package/dist/browser/index.js +1 -1
  392. package/dist/browser/index.js.map +2 -2
  393. package/dist/browser/manifest.json +1 -1
  394. package/dist/browser/sdk.js +1 -1
  395. package/dist/component.js.map +1 -1
  396. package/dist/components/builtins/audio/audio.d.ts +14 -5
  397. package/dist/components/builtins/audio/audio.d.ts.map +1 -1
  398. package/dist/components/builtins/audio/audio.js +10 -13
  399. package/dist/components/builtins/audio/audio.js.map +1 -1
  400. package/dist/components/builtins/geometry/composite.d.ts +3 -3
  401. package/dist/components/builtins/geometry/composite.js.map +1 -1
  402. package/dist/components/builtins/geometry/geometry.js.map +1 -1
  403. package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
  404. package/dist/components/builtins/layout/layout.js.map +1 -1
  405. package/dist/components/builtins/media/media.d.ts +7 -7
  406. package/dist/components/builtins/media/media.d.ts.map +1 -1
  407. package/dist/components/builtins/media/media.js +4 -10
  408. package/dist/components/builtins/media/media.js.map +1 -1
  409. package/dist/components/builtins/providers/providers.js.map +1 -1
  410. package/dist/components/builtins/text/number-format.js.map +1 -1
  411. package/dist/components/builtins/text/number-pattern.js.map +1 -1
  412. package/dist/components/builtins/text/text-defaults.js.map +1 -1
  413. package/dist/components/builtins/text/text-layout.js.map +1 -1
  414. package/dist/components/builtins/text/text.d.ts +9 -9
  415. package/dist/components/builtins/text/text.d.ts.map +1 -1
  416. package/dist/components/builtins/text/text.js +3 -0
  417. package/dist/components/builtins/text/text.js.map +1 -1
  418. package/dist/components/builtins/three/canvas3d.js.map +1 -1
  419. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
  420. package/dist/components/builtins/three/three.js.map +1 -1
  421. package/dist/components/factory/api.d.ts +38 -11
  422. package/dist/components/factory/api.d.ts.map +1 -1
  423. package/dist/components/factory/api.js.map +1 -1
  424. package/dist/components/factory/clip-of.js.map +1 -1
  425. package/dist/components/factory/commands-for.js.map +1 -1
  426. package/dist/components/factory/component-audio.js.map +1 -1
  427. package/dist/components/factory/component2d.js.map +1 -1
  428. package/dist/components/factory/component3d.d.ts.map +1 -1
  429. package/dist/components/factory/component3d.js +11 -3
  430. package/dist/components/factory/component3d.js.map +1 -1
  431. package/dist/components/factory/factory.d.ts +3 -0
  432. package/dist/components/factory/factory.d.ts.map +1 -1
  433. package/dist/components/factory/factory.js +39 -5
  434. package/dist/components/factory/factory.js.map +1 -1
  435. package/dist/components/factory/timeline.js.map +1 -1
  436. package/dist/components/factory/type-def.js.map +1 -1
  437. package/dist/components/factory/types.js.map +1 -1
  438. package/dist/components/factory/views.js.map +1 -1
  439. package/dist/components/modules/aim.js.map +1 -1
  440. package/dist/components/modules/corners.js.map +1 -1
  441. package/dist/components/modules/flow.js.map +1 -1
  442. package/dist/components/modules/material.js.map +1 -1
  443. package/dist/components/modules/paint.js.map +1 -1
  444. package/dist/components/modules/shapes.js.map +1 -1
  445. package/dist/components/modules/text-layout.js.map +1 -1
  446. package/dist/components/modules/text-style.js.map +1 -1
  447. package/dist/components/modules/three-entries.js.map +1 -1
  448. package/dist/components/modules/view3d.js.map +1 -1
  449. package/dist/components/trees/2d/group-bounds.js.map +1 -1
  450. package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
  451. package/dist/components/trees/2d/node-motion.js.map +1 -1
  452. package/dist/components/trees/2d/node-render.d.ts +1 -1
  453. package/dist/components/trees/2d/node-render.js +1 -1
  454. package/dist/components/trees/2d/node-render.js.map +1 -1
  455. package/dist/components/trees/2d/node-space.js.map +1 -1
  456. package/dist/components/trees/2d/node-transform.js.map +1 -1
  457. package/dist/components/trees/2d/node2d.d.ts +1 -1
  458. package/dist/components/trees/2d/node2d.js +1 -1
  459. package/dist/components/trees/2d/node2d.js.map +1 -1
  460. package/dist/components/trees/audio/index.js.map +1 -1
  461. package/dist/components/trees/audio/node-audio.d.ts +16 -9
  462. package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
  463. package/dist/components/trees/audio/node-audio.js +15 -11
  464. package/dist/components/trees/audio/node-audio.js.map +1 -1
  465. package/dist/components/trees/index.js.map +1 -1
  466. package/dist/components/trees/node/node-editor-state.js.map +1 -1
  467. package/dist/components/trees/node/node-reactive.js.map +1 -1
  468. package/dist/components/trees/node/node-time.js.map +1 -1
  469. package/dist/components/trees/node/node-walk.js.map +1 -1
  470. package/dist/components/trees/node/node.js.map +1 -1
  471. package/dist/components/trees/root/canvas2d-node.js.map +1 -1
  472. package/dist/components/trees/three/node3d.js.map +1 -1
  473. package/dist/document/audio.js.map +1 -1
  474. package/dist/document/builtins.js.map +1 -1
  475. package/dist/document/command-traits.d.ts +12 -2
  476. package/dist/document/command-traits.d.ts.map +1 -1
  477. package/dist/document/command-traits.js +34 -6
  478. package/dist/document/command-traits.js.map +1 -1
  479. package/dist/document/deny-globals.js.map +1 -1
  480. package/dist/document/diff.js.map +1 -1
  481. package/dist/document/doc-index.js.map +1 -1
  482. package/dist/document/expression/compile.js.map +1 -1
  483. package/dist/document/expression/index.js.map +1 -1
  484. package/dist/document/expression/ops.js.map +1 -1
  485. package/dist/document/expression/parse.js.map +1 -1
  486. package/dist/document/expression/refs.js.map +1 -1
  487. package/dist/document/expression/types.js.map +1 -1
  488. package/dist/document/expression/walk.js.map +1 -1
  489. package/dist/document/index.d.ts +8 -0
  490. package/dist/document/index.d.ts.map +1 -1
  491. package/dist/document/index.js +4 -0
  492. package/dist/document/index.js.map +1 -1
  493. package/dist/document/migrate.d.ts +70 -0
  494. package/dist/document/migrate.d.ts.map +1 -0
  495. package/dist/document/migrate.js +202 -0
  496. package/dist/document/migrate.js.map +1 -0
  497. package/dist/document/missing-node.d.ts +27 -0
  498. package/dist/document/missing-node.d.ts.map +1 -0
  499. package/dist/document/missing-node.js +48 -0
  500. package/dist/document/missing-node.js.map +1 -0
  501. package/dist/document/node-decorator.js.map +1 -1
  502. package/dist/document/node-descriptor.d.ts +4 -0
  503. package/dist/document/node-descriptor.d.ts.map +1 -1
  504. package/dist/document/node-descriptor.js.map +1 -1
  505. package/dist/document/placement.d.ts +2 -1
  506. package/dist/document/placement.d.ts.map +1 -1
  507. package/dist/document/placement.js.map +1 -1
  508. package/dist/document/project.d.ts +2 -0
  509. package/dist/document/project.d.ts.map +1 -1
  510. package/dist/document/project.js +1 -0
  511. package/dist/document/project.js.map +1 -1
  512. package/dist/document/prop-evolution.d.ts +51 -0
  513. package/dist/document/prop-evolution.d.ts.map +1 -0
  514. package/dist/document/prop-evolution.js +83 -0
  515. package/dist/document/prop-evolution.js.map +1 -0
  516. package/dist/document/registry.d.ts +16 -0
  517. package/dist/document/registry.d.ts.map +1 -1
  518. package/dist/document/registry.js +30 -4
  519. package/dist/document/registry.js.map +1 -1
  520. package/dist/document/settled-index.d.ts +2 -0
  521. package/dist/document/settled-index.d.ts.map +1 -1
  522. package/dist/document/settled-index.js +5 -5
  523. package/dist/document/settled-index.js.map +1 -1
  524. package/dist/document/timeline-patch.d.ts +4 -0
  525. package/dist/document/timeline-patch.d.ts.map +1 -1
  526. package/dist/document/timeline-patch.js +28 -3
  527. package/dist/document/timeline-patch.js.map +1 -1
  528. package/dist/document/timeline.d.ts +45 -1
  529. package/dist/document/timeline.d.ts.map +1 -1
  530. package/dist/document/timeline.js +172 -42
  531. package/dist/document/timeline.js.map +1 -1
  532. package/dist/document/types.d.ts +14 -28
  533. package/dist/document/types.d.ts.map +1 -1
  534. package/dist/document/types.js.map +1 -1
  535. package/dist/document/validate.d.ts +17 -5
  536. package/dist/document/validate.d.ts.map +1 -1
  537. package/dist/document/validate.js +158 -21
  538. package/dist/document/validate.js.map +1 -1
  539. package/dist/document/vocabulary.d.ts +28 -0
  540. package/dist/document/vocabulary.d.ts.map +1 -0
  541. package/dist/document/vocabulary.js +42 -0
  542. package/dist/document/vocabulary.js.map +1 -0
  543. package/dist/experimental.d.ts +68 -8
  544. package/dist/experimental.d.ts.map +1 -1
  545. package/dist/experimental.js +22 -8
  546. package/dist/experimental.js.map +1 -1
  547. package/dist/index.js.map +1 -1
  548. package/dist/layout/bounds.js.map +1 -1
  549. package/dist/layout/constraints.js.map +1 -1
  550. package/dist/layout/flex.js.map +1 -1
  551. package/dist/layout/freeform.js.map +1 -1
  552. package/dist/layout/grid.js.map +1 -1
  553. package/dist/layout/index.js.map +1 -1
  554. package/dist/layout/item.js.map +1 -1
  555. package/dist/layout/ops.js.map +1 -1
  556. package/dist/layout/types.js.map +1 -1
  557. package/dist/platform/audio-sink.js.map +1 -1
  558. package/dist/platform/exporter.d.ts +13 -0
  559. package/dist/platform/exporter.d.ts.map +1 -1
  560. package/dist/platform/exporter.js.map +1 -1
  561. package/dist/platform/index.js.map +1 -1
  562. package/dist/platform/stepped-clock.js.map +1 -1
  563. package/dist/platform/storage-adapter.js.map +1 -1
  564. package/dist/platform/ticker.js.map +1 -1
  565. package/dist/project/config.js.map +1 -1
  566. package/dist/project/index.js.map +1 -1
  567. package/dist/project/tree.js.map +1 -1
  568. package/dist/props/host.js.map +1 -1
  569. package/dist/props/index.js.map +1 -1
  570. package/dist/props/observer.js.map +1 -1
  571. package/dist/props/slot.js.map +1 -1
  572. package/dist/renamed-scene-names.d.ts +1 -1
  573. package/dist/renamed-scene-names.d.ts.map +1 -1
  574. package/dist/renamed-scene-names.js +1 -1
  575. package/dist/renamed-scene-names.js.map +1 -1
  576. package/dist/render/canvas-render-context2d.d.ts +9 -0
  577. package/dist/render/canvas-render-context2d.d.ts.map +1 -1
  578. package/dist/render/canvas-render-context2d.js +10 -0
  579. package/dist/render/canvas-render-context2d.js.map +1 -1
  580. package/dist/render/clip-contains.js +1 -1
  581. package/dist/render/clip-contains.js.map +1 -1
  582. package/dist/render/clip.js.map +1 -1
  583. package/dist/render/descriptors/ellipse.js.map +1 -1
  584. package/dist/render/descriptors/line.js.map +1 -1
  585. package/dist/render/descriptors/path-builder.js.map +1 -1
  586. package/dist/render/descriptors/path.js.map +1 -1
  587. package/dist/render/descriptors/polygon.js.map +1 -1
  588. package/dist/render/descriptors/polygram.js.map +1 -1
  589. package/dist/render/descriptors/rect.js.map +1 -1
  590. package/dist/render/descriptors/richtext.js.map +1 -1
  591. package/dist/render/descriptors/shape.js.map +1 -1
  592. package/dist/render/descriptors/text.d.ts +2 -2
  593. package/dist/render/descriptors/text.js +2 -2
  594. package/dist/render/descriptors/text.js.map +1 -1
  595. package/dist/render/descriptors/transform.js.map +1 -1
  596. package/dist/render/graphics2d.js.map +1 -1
  597. package/dist/render/index.d.ts +2 -0
  598. package/dist/render/index.d.ts.map +1 -1
  599. package/dist/render/index.js +1 -0
  600. package/dist/render/index.js.map +1 -1
  601. package/dist/render/measure-context.js.map +1 -1
  602. package/dist/render/null-render-context.js.map +1 -1
  603. package/dist/render/render-context2d.d.ts +1 -1
  604. package/dist/render/render-context2d.js.map +1 -1
  605. package/dist/render/render-issue.d.ts +39 -0
  606. package/dist/render/render-issue.d.ts.map +1 -0
  607. package/dist/render/render-issue.js +29 -0
  608. package/dist/render/render-issue.js.map +1 -0
  609. package/dist/render/surface.d.ts +2 -2
  610. package/dist/render/surface.js.map +1 -1
  611. package/dist/render/text-defaults.js.map +1 -1
  612. package/dist/render/text-layout.js.map +1 -1
  613. package/dist/render3d/bounds3d.js.map +1 -1
  614. package/dist/render3d/builders.js.map +1 -1
  615. package/dist/render3d/camera.js.map +1 -1
  616. package/dist/render3d/fill3d.js.map +1 -1
  617. package/dist/render3d/geometry.js.map +1 -1
  618. package/dist/render3d/graphics3d.d.ts.map +1 -1
  619. package/dist/render3d/graphics3d.js +54 -5
  620. package/dist/render3d/graphics3d.js.map +1 -1
  621. package/dist/render3d/index.js.map +1 -1
  622. package/dist/render3d/inert.js.map +1 -1
  623. package/dist/render3d/light.js.map +1 -1
  624. package/dist/render3d/material.js.map +1 -1
  625. package/dist/render3d/matrix4.js.map +1 -1
  626. package/dist/render3d/render-context3d.js.map +1 -1
  627. package/dist/render3d/resources.js.map +1 -1
  628. package/dist/render3d/rounded-box.js.map +1 -1
  629. package/dist/render3d/scene-settings.js.map +1 -1
  630. package/dist/render3d/scene3d.js.map +1 -1
  631. package/dist/render3d/segments.js.map +1 -1
  632. package/dist/render3d/texture.js.map +1 -1
  633. package/dist/render3d/tracking.js.map +1 -1
  634. package/dist/render3d/transform.js.map +1 -1
  635. package/dist/render3d/vector3.js.map +1 -1
  636. package/dist/render3d/walk.js.map +1 -1
  637. package/dist/runtime/asset-refine.js +2 -1
  638. package/dist/runtime/asset-refine.js.map +1 -1
  639. package/dist/runtime/asset-timeline.d.ts +10 -0
  640. package/dist/runtime/asset-timeline.d.ts.map +1 -1
  641. package/dist/runtime/asset-timeline.js.map +1 -1
  642. package/dist/runtime/asset-update.d.ts.map +1 -1
  643. package/dist/runtime/asset-update.js +7 -0
  644. package/dist/runtime/asset-update.js.map +1 -1
  645. package/dist/runtime/audio-index.js.map +1 -1
  646. package/dist/runtime/builtin-context.js.map +1 -1
  647. package/dist/runtime/clip-instance.d.ts +3 -1
  648. package/dist/runtime/clip-instance.d.ts.map +1 -1
  649. package/dist/runtime/clip-instance.js +4 -0
  650. package/dist/runtime/clip-instance.js.map +1 -1
  651. package/dist/runtime/clip-store.d.ts.map +1 -1
  652. package/dist/runtime/clip-store.js +17 -2
  653. package/dist/runtime/clip-store.js.map +1 -1
  654. package/dist/runtime/engine.d.ts +5 -3
  655. package/dist/runtime/engine.d.ts.map +1 -1
  656. package/dist/runtime/engine.js +2 -1
  657. package/dist/runtime/engine.js.map +1 -1
  658. package/dist/runtime/frame-time.js.map +1 -1
  659. package/dist/runtime/index.js.map +1 -1
  660. package/dist/runtime/node-picking.js.map +1 -1
  661. package/dist/runtime/node-picking3d.js.map +1 -1
  662. package/dist/runtime/placement.js.map +1 -1
  663. package/dist/runtime/playback-controller.d.ts.map +1 -1
  664. package/dist/runtime/playback-controller.js +14 -4
  665. package/dist/runtime/playback-controller.js.map +1 -1
  666. package/dist/runtime/playback.js.map +1 -1
  667. package/dist/runtime/precompisition.js.map +1 -1
  668. package/dist/runtime/project-assets.js.map +1 -1
  669. package/dist/runtime/session.d.ts +7 -3
  670. package/dist/runtime/session.d.ts.map +1 -1
  671. package/dist/runtime/session.js +11 -4
  672. package/dist/runtime/session.js.map +1 -1
  673. package/dist/runtime/settle.js.map +1 -1
  674. package/dist/runtime/state-evaluator.js.map +1 -1
  675. package/dist/runtime/text-geometry.d.ts +1 -1
  676. package/dist/runtime/text-geometry.js.map +1 -1
  677. package/dist/sdk/index.d.ts +8 -6
  678. package/dist/sdk/index.d.ts.map +1 -1
  679. package/dist/sdk/index.js +10 -3
  680. package/dist/sdk/index.js.map +1 -1
  681. package/dist/tween/command-decorator.d.ts +7 -0
  682. package/dist/tween/command-decorator.d.ts.map +1 -1
  683. package/dist/tween/command-decorator.js +1 -0
  684. package/dist/tween/command-decorator.js.map +1 -1
  685. package/dist/tween/command.js.map +1 -1
  686. package/dist/tween/ease/constants.js.map +1 -1
  687. package/dist/tween/ease/curve.js.map +1 -1
  688. package/dist/tween/ease/describe.d.ts +2 -0
  689. package/dist/tween/ease/describe.d.ts.map +1 -1
  690. package/dist/tween/ease/describe.js +4 -0
  691. package/dist/tween/ease/describe.js.map +1 -1
  692. package/dist/tween/ease/spec.d.ts +31 -0
  693. package/dist/tween/ease/spec.d.ts.map +1 -0
  694. package/dist/tween/ease/spec.js +51 -0
  695. package/dist/tween/ease/spec.js.map +1 -0
  696. package/dist/tween/ease/type.js.map +1 -1
  697. package/dist/tween/index.d.ts +1 -0
  698. package/dist/tween/index.d.ts.map +1 -1
  699. package/dist/tween/index.js +1 -0
  700. package/dist/tween/index.js.map +1 -1
  701. package/dist/tween/inert.js.map +1 -1
  702. package/dist/tween/lerp.js.map +1 -1
  703. package/dist/tween/loop.js.map +1 -1
  704. package/dist/tween/prepare.js.map +1 -1
  705. package/dist/tween/stepper.js.map +1 -1
  706. package/dist/tween/to-command.js.map +1 -1
  707. package/dist/util/clamp.js.map +1 -1
  708. package/dist/util/context.js.map +1 -1
  709. package/dist/util/csv.js.map +1 -1
  710. package/dist/util/generateList.js.map +1 -1
  711. package/dist/util/index.js.map +1 -1
  712. package/dist/util/metrics.js.map +1 -1
  713. package/dist/util/random.js.map +1 -1
  714. package/dist/util/reference.js.map +1 -1
  715. package/dist/util/scheduler.js.map +1 -1
  716. package/package.json +2 -2
  717. package/dist/attributes/audio/filters/chain.d.ts +0 -113
  718. package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
  719. package/dist/attributes/audio/filters/chain.js +0 -104
  720. package/dist/attributes/audio/filters/chain.js.map +0 -1
  721. package/dist/attributes/audio/filters/curve.d.ts +0 -152
  722. package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
  723. package/dist/attributes/audio/filters/curve.js +0 -250
  724. package/dist/attributes/audio/filters/curve.js.map +0 -1
  725. package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
  726. package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
  727. package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
  728. package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
  729. package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
  730. package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
  731. package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
  732. package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
  733. package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
  734. package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
  735. package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
  736. package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
  737. package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
  738. package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
  739. package/dist/attributes/audio/filters/implementations/speed.js +0 -6
  740. package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
  741. package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
  742. package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
  743. package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
  744. package/dist/attributes/audio/filters/index.d.ts +0 -22
  745. package/dist/attributes/audio/filters/index.d.ts.map +0 -1
  746. package/dist/attributes/audio/filters/index.js +0 -8
  747. package/dist/attributes/audio/filters/index.js.map +0 -1
  748. package/dist/attributes/audio/filters/registry.d.ts +0 -36
  749. package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
  750. package/dist/attributes/audio/filters/registry.js +0 -82
  751. package/dist/attributes/audio/filters/registry.js.map +0 -1
  752. package/dist/attributes/audio/filters/union.d.ts +0 -18
  753. package/dist/attributes/audio/filters/union.d.ts.map +0 -1
  754. package/dist/attributes/audio/filters/union.js +0 -28
  755. package/dist/attributes/audio/filters/union.js.map +0 -1
  756. package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
  757. package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
  758. package/dist/attributes/shape/sksl-uniforms.js +0 -0
  759. package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
  760. package/dist/browser/chunks/chunk-D4FSTPML.js +0 -14
  761. package/dist/browser/chunks/chunk-D4FSTPML.js.map +0 -7
  762. package/dist/browser/chunks/chunk-LKUYVFU3.js.map +0 -7
  763. package/dist/browser/chunks/chunk-RTNATFWX.js +0 -5
  764. package/dist/browser/chunks/chunk-RTNATFWX.js.map +0 -7
  765. package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +0 -7
  766. package/dist/component/api.d.ts +0 -508
  767. package/dist/component/api.d.ts.map +0 -1
  768. package/dist/component/api.js +0 -4
  769. package/dist/component/api.js.map +0 -1
  770. package/dist/component/builtins/audio.d.ts +0 -26
  771. package/dist/component/builtins/audio.d.ts.map +0 -1
  772. package/dist/component/builtins/audio.js +0 -41
  773. package/dist/component/builtins/audio.js.map +0 -1
  774. package/dist/component/builtins/canvas3d.d.ts +0 -98
  775. package/dist/component/builtins/canvas3d.d.ts.map +0 -1
  776. package/dist/component/builtins/canvas3d.js +0 -21
  777. package/dist/component/builtins/canvas3d.js.map +0 -1
  778. package/dist/component/builtins/composite.d.ts +0 -56
  779. package/dist/component/builtins/composite.d.ts.map +0 -1
  780. package/dist/component/builtins/composite.js +0 -25
  781. package/dist/component/builtins/composite.js.map +0 -1
  782. package/dist/component/builtins/geometry.d.ts +0 -505
  783. package/dist/component/builtins/geometry.d.ts.map +0 -1
  784. package/dist/component/builtins/geometry.js +0 -107
  785. package/dist/component/builtins/geometry.js.map +0 -1
  786. package/dist/component/builtins/layout.d.ts +0 -88
  787. package/dist/component/builtins/layout.d.ts.map +0 -1
  788. package/dist/component/builtins/layout.js +0 -84
  789. package/dist/component/builtins/layout.js.map +0 -1
  790. package/dist/component/builtins/media.d.ts +0 -95
  791. package/dist/component/builtins/media.d.ts.map +0 -1
  792. package/dist/component/builtins/media.js +0 -149
  793. package/dist/component/builtins/media.js.map +0 -1
  794. package/dist/component/builtins/providers.d.ts +0 -23
  795. package/dist/component/builtins/providers.d.ts.map +0 -1
  796. package/dist/component/builtins/providers.js +0 -30
  797. package/dist/component/builtins/providers.js.map +0 -1
  798. package/dist/component/builtins/text.d.ts +0 -193
  799. package/dist/component/builtins/text.d.ts.map +0 -1
  800. package/dist/component/builtins/text.js +0 -113
  801. package/dist/component/builtins/text.js.map +0 -1
  802. package/dist/component/builtins/three.d.ts +0 -1085
  803. package/dist/component/builtins/three.d.ts.map +0 -1
  804. package/dist/component/builtins/three.js +0 -265
  805. package/dist/component/builtins/three.js.map +0 -1
  806. package/dist/component/clip-of.d.ts +0 -5
  807. package/dist/component/clip-of.d.ts.map +0 -1
  808. package/dist/component/clip-of.js +0 -33
  809. package/dist/component/clip-of.js.map +0 -1
  810. package/dist/component/commands-for.d.ts +0 -19
  811. package/dist/component/commands-for.d.ts.map +0 -1
  812. package/dist/component/commands-for.js +0 -5
  813. package/dist/component/commands-for.js.map +0 -1
  814. package/dist/component/component-audio.d.ts +0 -9
  815. package/dist/component/component-audio.d.ts.map +0 -1
  816. package/dist/component/component-audio.js +0 -18
  817. package/dist/component/component-audio.js.map +0 -1
  818. package/dist/component/component2d.d.ts +0 -9
  819. package/dist/component/component2d.d.ts.map +0 -1
  820. package/dist/component/component2d.js +0 -239
  821. package/dist/component/component2d.js.map +0 -1
  822. package/dist/component/component3d.d.ts +0 -9
  823. package/dist/component/component3d.d.ts.map +0 -1
  824. package/dist/component/component3d.js +0 -99
  825. package/dist/component/component3d.js.map +0 -1
  826. package/dist/component/factory.d.ts +0 -63
  827. package/dist/component/factory.d.ts.map +0 -1
  828. package/dist/component/factory.js +0 -313
  829. package/dist/component/factory.js.map +0 -1
  830. package/dist/component/modules/aim.d.ts +0 -30
  831. package/dist/component/modules/aim.d.ts.map +0 -1
  832. package/dist/component/modules/aim.js +0 -39
  833. package/dist/component/modules/aim.js.map +0 -1
  834. package/dist/component/modules/corners.d.ts +0 -13
  835. package/dist/component/modules/corners.d.ts.map +0 -1
  836. package/dist/component/modules/corners.js +0 -12
  837. package/dist/component/modules/corners.js.map +0 -1
  838. package/dist/component/modules/flow.d.ts +0 -26
  839. package/dist/component/modules/flow.d.ts.map +0 -1
  840. package/dist/component/modules/flow.js +0 -55
  841. package/dist/component/modules/flow.js.map +0 -1
  842. package/dist/component/modules/material.d.ts +0 -40
  843. package/dist/component/modules/material.d.ts.map +0 -1
  844. package/dist/component/modules/material.js +0 -75
  845. package/dist/component/modules/material.js.map +0 -1
  846. package/dist/component/modules/paint.d.ts +0 -71
  847. package/dist/component/modules/paint.d.ts.map +0 -1
  848. package/dist/component/modules/paint.js +0 -106
  849. package/dist/component/modules/paint.js.map +0 -1
  850. package/dist/component/modules/shapes.d.ts +0 -31
  851. package/dist/component/modules/shapes.d.ts.map +0 -1
  852. package/dist/component/modules/shapes.js +0 -43
  853. package/dist/component/modules/shapes.js.map +0 -1
  854. package/dist/component/modules/text-layout.d.ts +0 -26
  855. package/dist/component/modules/text-layout.d.ts.map +0 -1
  856. package/dist/component/modules/text-layout.js +0 -57
  857. package/dist/component/modules/text-layout.js.map +0 -1
  858. package/dist/component/modules/text-style.d.ts +0 -48
  859. package/dist/component/modules/text-style.d.ts.map +0 -1
  860. package/dist/component/modules/text-style.js +0 -63
  861. package/dist/component/modules/text-style.js.map +0 -1
  862. package/dist/component/modules/three-entries.d.ts +0 -23
  863. package/dist/component/modules/three-entries.d.ts.map +0 -1
  864. package/dist/component/modules/three-entries.js +0 -41
  865. package/dist/component/modules/three-entries.js.map +0 -1
  866. package/dist/component/modules/view3d.d.ts +0 -55
  867. package/dist/component/modules/view3d.d.ts.map +0 -1
  868. package/dist/component/modules/view3d.js +0 -160
  869. package/dist/component/modules/view3d.js.map +0 -1
  870. package/dist/component/timeline.d.ts +0 -22
  871. package/dist/component/timeline.d.ts.map +0 -1
  872. package/dist/component/timeline.js +0 -128
  873. package/dist/component/timeline.js.map +0 -1
  874. package/dist/component/type-def.d.ts +0 -26
  875. package/dist/component/type-def.d.ts.map +0 -1
  876. package/dist/component/type-def.js +0 -16
  877. package/dist/component/type-def.js.map +0 -1
  878. package/dist/component/types.d.ts +0 -91
  879. package/dist/component/types.d.ts.map +0 -1
  880. package/dist/component/types.js +0 -88
  881. package/dist/component/types.js.map +0 -1
  882. package/dist/component/views.d.ts +0 -121
  883. package/dist/component/views.d.ts.map +0 -1
  884. package/dist/component/views.js +0 -413
  885. package/dist/component/views.js.map +0 -1
  886. package/dist/document/withdraw.d.ts +0 -28
  887. package/dist/document/withdraw.d.ts.map +0 -1
  888. package/dist/document/withdraw.js +0 -61
  889. package/dist/document/withdraw.js.map +0 -1
  890. package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
  891. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  892. package/dist/jsx/jsx-dev-runtime.js +0 -3
  893. package/dist/jsx/jsx-dev-runtime.js.map +0 -1
  894. package/dist/jsx/jsx-runtime.d.ts +0 -27
  895. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  896. package/dist/jsx/jsx-runtime.js +0 -26
  897. package/dist/jsx/jsx-runtime.js.map +0 -1
  898. package/dist/nodes/2d/node-lifecycle.d.ts +0 -46
  899. package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
  900. package/dist/nodes/2d/node-lifecycle.js +0 -264
  901. package/dist/nodes/2d/node-lifecycle.js.map +0 -1
  902. package/dist/nodes/2d/node-motion.d.ts +0 -56
  903. package/dist/nodes/2d/node-motion.d.ts.map +0 -1
  904. package/dist/nodes/2d/node-motion.js +0 -86
  905. package/dist/nodes/2d/node-motion.js.map +0 -1
  906. package/dist/nodes/2d/node-render.d.ts +0 -44
  907. package/dist/nodes/2d/node-render.d.ts.map +0 -1
  908. package/dist/nodes/2d/node-render.js +0 -80
  909. package/dist/nodes/2d/node-render.js.map +0 -1
  910. package/dist/nodes/2d/node-space.d.ts +0 -63
  911. package/dist/nodes/2d/node-space.d.ts.map +0 -1
  912. package/dist/nodes/2d/node-space.js +0 -131
  913. package/dist/nodes/2d/node-space.js.map +0 -1
  914. package/dist/nodes/2d/node-transform.d.ts +0 -55
  915. package/dist/nodes/2d/node-transform.d.ts.map +0 -1
  916. package/dist/nodes/2d/node-transform.js +0 -73
  917. package/dist/nodes/2d/node-transform.js.map +0 -1
  918. package/dist/nodes/2d/node2d.d.ts +0 -1111
  919. package/dist/nodes/2d/node2d.d.ts.map +0 -1
  920. package/dist/nodes/2d/node2d.js +0 -1665
  921. package/dist/nodes/2d/node2d.js.map +0 -1
  922. package/dist/nodes/2d/paint-node.d.ts +0 -142
  923. package/dist/nodes/2d/paint-node.d.ts.map +0 -1
  924. package/dist/nodes/2d/paint-node.js +0 -232
  925. package/dist/nodes/2d/paint-node.js.map +0 -1
  926. package/dist/nodes/audio/audio-bus.d.ts +0 -28
  927. package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
  928. package/dist/nodes/audio/audio-bus.js +0 -33
  929. package/dist/nodes/audio/audio-bus.js.map +0 -1
  930. package/dist/nodes/audio/index.d.ts +0 -4
  931. package/dist/nodes/audio/index.d.ts.map +0 -1
  932. package/dist/nodes/audio/index.js +0 -2
  933. package/dist/nodes/audio/index.js.map +0 -1
  934. package/dist/nodes/audio/node-audio.d.ts +0 -107
  935. package/dist/nodes/audio/node-audio.d.ts.map +0 -1
  936. package/dist/nodes/audio/node-audio.js +0 -179
  937. package/dist/nodes/audio/node-audio.js.map +0 -1
  938. package/dist/nodes/audio/sound-node.d.ts +0 -41
  939. package/dist/nodes/audio/sound-node.d.ts.map +0 -1
  940. package/dist/nodes/audio/sound-node.js +0 -71
  941. package/dist/nodes/audio/sound-node.js.map +0 -1
  942. package/dist/nodes/geometry/boolean-node.d.ts +0 -28
  943. package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
  944. package/dist/nodes/geometry/boolean-node.js +0 -81
  945. package/dist/nodes/geometry/boolean-node.js.map +0 -1
  946. package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
  947. package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
  948. package/dist/nodes/geometry/bounds-shape-node.js +0 -181
  949. package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
  950. package/dist/nodes/geometry/box-path-node.d.ts +0 -89
  951. package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
  952. package/dist/nodes/geometry/box-path-node.js +0 -116
  953. package/dist/nodes/geometry/box-path-node.js.map +0 -1
  954. package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
  955. package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
  956. package/dist/nodes/geometry/ellipse-node.js +0 -45
  957. package/dist/nodes/geometry/ellipse-node.js.map +0 -1
  958. package/dist/nodes/geometry/group-bounds.d.ts +0 -56
  959. package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
  960. package/dist/nodes/geometry/group-bounds.js +0 -87
  961. package/dist/nodes/geometry/group-bounds.js.map +0 -1
  962. package/dist/nodes/geometry/mask-node.d.ts +0 -33
  963. package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
  964. package/dist/nodes/geometry/mask-node.js +0 -66
  965. package/dist/nodes/geometry/mask-node.js.map +0 -1
  966. package/dist/nodes/geometry/path-node.d.ts +0 -26
  967. package/dist/nodes/geometry/path-node.d.ts.map +0 -1
  968. package/dist/nodes/geometry/path-node.js +0 -58
  969. package/dist/nodes/geometry/path-node.js.map +0 -1
  970. package/dist/nodes/geometry/polygon-node.d.ts +0 -26
  971. package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
  972. package/dist/nodes/geometry/polygon-node.js +0 -47
  973. package/dist/nodes/geometry/polygon-node.js.map +0 -1
  974. package/dist/nodes/geometry/polygram-node.d.ts +0 -33
  975. package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
  976. package/dist/nodes/geometry/polygram-node.js +0 -52
  977. package/dist/nodes/geometry/polygram-node.js.map +0 -1
  978. package/dist/nodes/geometry/rect-node.d.ts +0 -38
  979. package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
  980. package/dist/nodes/geometry/rect-node.js +0 -56
  981. package/dist/nodes/geometry/rect-node.js.map +0 -1
  982. package/dist/nodes/geometry/shape-node.d.ts +0 -71
  983. package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
  984. package/dist/nodes/geometry/shape-node.js +0 -140
  985. package/dist/nodes/geometry/shape-node.js.map +0 -1
  986. package/dist/nodes/geometry/shape-outline.d.ts +0 -93
  987. package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
  988. package/dist/nodes/geometry/shape-outline.js +0 -470
  989. package/dist/nodes/geometry/shape-outline.js.map +0 -1
  990. package/dist/nodes/index.d.ts +0 -53
  991. package/dist/nodes/index.d.ts.map +0 -1
  992. package/dist/nodes/index.js +0 -35
  993. package/dist/nodes/index.js.map +0 -1
  994. package/dist/nodes/layout/camera-node.d.ts +0 -80
  995. package/dist/nodes/layout/camera-node.d.ts.map +0 -1
  996. package/dist/nodes/layout/camera-node.js +0 -153
  997. package/dist/nodes/layout/camera-node.js.map +0 -1
  998. package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
  999. package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
  1000. package/dist/nodes/layout/orbit-camera-node.js +0 -118
  1001. package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
  1002. package/dist/nodes/layout/rotated-box.d.ts +0 -20
  1003. package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
  1004. package/dist/nodes/layout/rotated-box.js +0 -76
  1005. package/dist/nodes/layout/rotated-box.js.map +0 -1
  1006. package/dist/nodes/media/video-node.d.ts +0 -229
  1007. package/dist/nodes/media/video-node.d.ts.map +0 -1
  1008. package/dist/nodes/media/video-node.js +0 -350
  1009. package/dist/nodes/media/video-node.js.map +0 -1
  1010. package/dist/nodes/node/declare-paints.d.ts +0 -19
  1011. package/dist/nodes/node/declare-paints.d.ts.map +0 -1
  1012. package/dist/nodes/node/declare-paints.js +0 -27
  1013. package/dist/nodes/node/declare-paints.js.map +0 -1
  1014. package/dist/nodes/node/node-editor-state.d.ts +0 -53
  1015. package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
  1016. package/dist/nodes/node/node-editor-state.js +0 -23
  1017. package/dist/nodes/node/node-editor-state.js.map +0 -1
  1018. package/dist/nodes/node/node-reactive.d.ts +0 -89
  1019. package/dist/nodes/node/node-reactive.d.ts.map +0 -1
  1020. package/dist/nodes/node/node-reactive.js +0 -135
  1021. package/dist/nodes/node/node-reactive.js.map +0 -1
  1022. package/dist/nodes/node/node-time.d.ts +0 -39
  1023. package/dist/nodes/node/node-time.d.ts.map +0 -1
  1024. package/dist/nodes/node/node-time.js +0 -14
  1025. package/dist/nodes/node/node-time.js.map +0 -1
  1026. package/dist/nodes/node/node-walk.d.ts +0 -46
  1027. package/dist/nodes/node/node-walk.d.ts.map +0 -1
  1028. package/dist/nodes/node/node-walk.js +0 -74
  1029. package/dist/nodes/node/node-walk.js.map +0 -1
  1030. package/dist/nodes/node/node.d.ts +0 -445
  1031. package/dist/nodes/node/node.d.ts.map +0 -1
  1032. package/dist/nodes/node/node.js +0 -745
  1033. package/dist/nodes/node/node.js.map +0 -1
  1034. package/dist/nodes/node/text-defaults.d.ts +0 -32
  1035. package/dist/nodes/node/text-defaults.d.ts.map +0 -1
  1036. package/dist/nodes/node/text-defaults.js +0 -37
  1037. package/dist/nodes/node/text-defaults.js.map +0 -1
  1038. package/dist/nodes/root/canvas2d-node.d.ts +0 -163
  1039. package/dist/nodes/root/canvas2d-node.d.ts.map +0 -1
  1040. package/dist/nodes/root/canvas2d-node.js +0 -264
  1041. package/dist/nodes/root/canvas2d-node.js.map +0 -1
  1042. package/dist/nodes/root/provider-node.d.ts +0 -47
  1043. package/dist/nodes/root/provider-node.d.ts.map +0 -1
  1044. package/dist/nodes/root/provider-node.js +0 -63
  1045. package/dist/nodes/root/provider-node.js.map +0 -1
  1046. package/dist/nodes/root/theme-provider-node.d.ts +0 -29
  1047. package/dist/nodes/root/theme-provider-node.d.ts.map +0 -1
  1048. package/dist/nodes/root/theme-provider-node.js +0 -43
  1049. package/dist/nodes/root/theme-provider-node.js.map +0 -1
  1050. package/dist/nodes/text/default-text-style-node.d.ts +0 -103
  1051. package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
  1052. package/dist/nodes/text/default-text-style-node.js +0 -146
  1053. package/dist/nodes/text/default-text-style-node.js.map +0 -1
  1054. package/dist/nodes/text/number-format.d.ts +0 -66
  1055. package/dist/nodes/text/number-format.d.ts.map +0 -1
  1056. package/dist/nodes/text/number-format.js +0 -227
  1057. package/dist/nodes/text/number-format.js.map +0 -1
  1058. package/dist/nodes/text/number-node.d.ts +0 -94
  1059. package/dist/nodes/text/number-node.d.ts.map +0 -1
  1060. package/dist/nodes/text/number-node.js +0 -86
  1061. package/dist/nodes/text/number-node.js.map +0 -1
  1062. package/dist/nodes/text/number-pattern.d.ts +0 -51
  1063. package/dist/nodes/text/number-pattern.d.ts.map +0 -1
  1064. package/dist/nodes/text/number-pattern.js +0 -77
  1065. package/dist/nodes/text/number-pattern.js.map +0 -1
  1066. package/dist/nodes/text/richtext-node.d.ts +0 -68
  1067. package/dist/nodes/text/richtext-node.d.ts.map +0 -1
  1068. package/dist/nodes/text/richtext-node.js +0 -78
  1069. package/dist/nodes/text/richtext-node.js.map +0 -1
  1070. package/dist/nodes/text/text-base.d.ts +0 -118
  1071. package/dist/nodes/text/text-base.d.ts.map +0 -1
  1072. package/dist/nodes/text/text-base.js +0 -153
  1073. package/dist/nodes/text/text-base.js.map +0 -1
  1074. package/dist/nodes/text/text-layout.d.ts +0 -87
  1075. package/dist/nodes/text/text-layout.d.ts.map +0 -1
  1076. package/dist/nodes/text/text-layout.js +0 -368
  1077. package/dist/nodes/text/text-layout.js.map +0 -1
  1078. package/dist/nodes/text/text-node.d.ts +0 -84
  1079. package/dist/nodes/text/text-node.d.ts.map +0 -1
  1080. package/dist/nodes/text/text-node.js +0 -188
  1081. package/dist/nodes/text/text-node.js.map +0 -1
  1082. package/dist/nodes/text/text-selection.d.ts +0 -125
  1083. package/dist/nodes/text/text-selection.d.ts.map +0 -1
  1084. package/dist/nodes/text/text-selection.js +0 -209
  1085. package/dist/nodes/text/text-selection.js.map +0 -1
  1086. package/dist/nodes/three/camera-nodes.d.ts +0 -109
  1087. package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
  1088. package/dist/nodes/three/camera-nodes.js +0 -112
  1089. package/dist/nodes/three/camera-nodes.js.map +0 -1
  1090. package/dist/nodes/three/canvas3d-node.d.ts +0 -295
  1091. package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
  1092. package/dist/nodes/three/canvas3d-node.js +0 -486
  1093. package/dist/nodes/three/canvas3d-node.js.map +0 -1
  1094. package/dist/nodes/three/drawable-nodes.d.ts +0 -173
  1095. package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
  1096. package/dist/nodes/three/drawable-nodes.js +0 -284
  1097. package/dist/nodes/three/drawable-nodes.js.map +0 -1
  1098. package/dist/nodes/three/environment-nodes.d.ts +0 -106
  1099. package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
  1100. package/dist/nodes/three/environment-nodes.js +0 -134
  1101. package/dist/nodes/three/environment-nodes.js.map +0 -1
  1102. package/dist/nodes/three/geometry-nodes.d.ts +0 -197
  1103. package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
  1104. package/dist/nodes/three/geometry-nodes.js +0 -322
  1105. package/dist/nodes/three/geometry-nodes.js.map +0 -1
  1106. package/dist/nodes/three/grid-geometry3d.d.ts +0 -62
  1107. package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
  1108. package/dist/nodes/three/grid-geometry3d.js +0 -114
  1109. package/dist/nodes/three/grid-geometry3d.js.map +0 -1
  1110. package/dist/nodes/three/group3d.d.ts +0 -23
  1111. package/dist/nodes/three/group3d.d.ts.map +0 -1
  1112. package/dist/nodes/three/group3d.js +0 -21
  1113. package/dist/nodes/three/group3d.js.map +0 -1
  1114. package/dist/nodes/three/light-nodes.d.ts +0 -120
  1115. package/dist/nodes/three/light-nodes.d.ts.map +0 -1
  1116. package/dist/nodes/three/light-nodes.js +0 -173
  1117. package/dist/nodes/three/light-nodes.js.map +0 -1
  1118. package/dist/nodes/three/mesh3d.d.ts +0 -117
  1119. package/dist/nodes/three/mesh3d.d.ts.map +0 -1
  1120. package/dist/nodes/three/mesh3d.js +0 -147
  1121. package/dist/nodes/three/mesh3d.js.map +0 -1
  1122. package/dist/nodes/three/node3d.d.ts +0 -230
  1123. package/dist/nodes/three/node3d.d.ts.map +0 -1
  1124. package/dist/nodes/three/node3d.js +0 -337
  1125. package/dist/nodes/three/node3d.js.map +0 -1
  1126. package/dist/render/descriptors/latex.d.ts +0 -6
  1127. package/dist/render/descriptors/latex.d.ts.map +0 -1
  1128. package/dist/render/descriptors/latex.js +0 -2
  1129. package/dist/render/descriptors/latex.js.map +0 -1
  1130. package/dist/tween/seekable.d.ts +0 -81
  1131. package/dist/tween/seekable.d.ts.map +0 -1
  1132. package/dist/tween/seekable.js +0 -137
  1133. package/dist/tween/seekable.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"matrix2d.js","sourceRoot":"","sources":["../../../src/attributes/layout/matrix2d.ts"],"names":[],"mappings":"AAqCA,0FAA0F;AAC1F,MAAM,UAAU,YAAY,CAAC,CAAW;IACpC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,KAAK,GAAG,IAAI,CAAC;AACnB,SAAS,KAAK,CAAC,CAAS;IACpB,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,CAAC,C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EAAE,GAAG,MAAM,CAAC;IAEvB,yEAAyE;IACzE,uEAAuE;IACvE,EAAE;IACF,0EAA0E;IAC1E,2EAA2E;IAC3E,0EAA0E;IAC1E,uEAAuE;IACvE,2EAA2E;IAC3E,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,2EAA2E;IAC3E,yEAAyE;IACzE,8DAA8D;IAC9D,MAAM,EAAE,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,MAAM,EAAE,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,OAAO;QACH,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC;QACtC,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC;QACtC,CAAC,EAAE,CAAC,GAAG,EAAE;QACT,CAAC,EAAE,CAAC,GAAG,EAAE;QACT,CAAC;KACJ,CAAC;AACN,CAAC","sourcesContent":["import { Vector2 } from \"@/attributes/layout/vector2\";\r\n\r\n/**\r\n * A 2D transform stored as the members of a 3×3 matrix:\r\n *\r\n * ```\r\n * | a c e |\r\n * | b d f |\r\n * | g h i |\r\n * ```\r\n *\r\n * Point mapping is `x' = (a·x + c·y + e) / w`, `y' = (b·x + d·y + f) / w`, with\r\n * `w = g·x + h·y + i`. This is the same column-order convention CanvasKit/DOM\r\n * use, so matrices compose in draw order: `parent.multiply(child)` is the world\r\n * transform of `child`.\r\n *\r\n * **The bottom row is optional, and leaving it off means `[0 0 1]`** — an\r\n * ordinary affine transform, where `w` is 1 everywhere and the divide falls\r\n * away. Every matrix in the engine was exactly that until\r\n * {@link nodeProjectedMatrix} arrived: a node tilted out of its own plane\r\n * projects through a *homography*, and a homography does not fit in six numbers.\r\n * Rather than a second matrix type — with a second `multiply`, `invert` and\r\n * `applyToPoint` beside it, which is precisely how a renderer and a hit test end\r\n * up disagreeing about where a node is — the row lives here, and everything that\r\n * has no use for it simply omits it.\r\n */\r\n/** @internal */\r\nexport interface Matrix2D {\r\n a: number; b: number; c: number; d: number; e: number; f: number;\r\n /** Perspective row, x term. Omitted on an affine transform (means `0`). */\r\n g?: number;\r\n /** Perspective row, y term. Omitted on an affine transform (means `0`). */\r\n h?: number;\r\n /** Perspective row, constant term. Omitted on an affine transform (means `1`). */\r\n i?: number;\r\n}\r\n\r\n/** @internal Whether `m` carries a perspective row — i.e. whether `w` is not always 1. */\r\nexport function isProjective(m: Matrix2D): boolean {\r\n return (m.g ?? 0) !== 0 || (m.h ?? 0) !== 0 || (m.i ?? 1) !== 1;\r\n}\r\n\r\n/**\r\n * Guard the perspective divide. A point on the vanishing line has `w = 0` and\r\n * projects to infinity, which is a real answer no coordinate can hold; clamping\r\n * to a tiny same-signed `w` sends it far off-screen instead, which is where it\r\n * belongs and is a number the caller can keep doing arithmetic with. Without\r\n * this, one degenerate corner turns an anchor set into `Infinity`/`NaN` and\r\n * takes the selection box, the hit test and any layout reading it with it.\r\n */\r\nconst MIN_W = 1e-6;\r\nfunction safeW(w: number): number {\r\n if (w > MIN_W || w < -MIN_W) return w;\r\n return w < 0 ? -MIN_W : MIN_W;\r\n}\r\n\r\n/** @internal The identity transform — maps every point to itself. */\r\nexport function identity(): Matrix2D {\r\n return { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };\r\n}\r\n\r\n/** @internal Pure translation by (tx, ty). */\r\nexport function translation(tx: number, ty: number): Matrix2D {\r\n return { a: 1, b: 0, c: 0, d: 1, e: tx, f: ty };\r\n}\r\n\r\n/**\r\n * `m1 · m2` — the transform that applies `m2` first, then `m1`. Composing an\r\n * ancestor with a descendant (`ancestor.multiply(descendant)`) yields the\r\n * descendant's world transform.\r\n *\r\n * Two affine matrices take the six-member path they always did — that is every\r\n * composition in a scene with no 3D in it, once per node per parent per frame —\r\n * and the general 3×3 product runs only when one side actually carries a\r\n * perspective row.\r\n */\r\n/** @internal */\r\nexport function multiply(m1: Matrix2D, m2: Matrix2D): Matrix2D {\r\n if (isProjective(m1) || isProjective(m2)) return multiplyProjective(m1, m2);\r\n return {\r\n a: m1.a * m2.a + m1.c * m2.b,\r\n b: m1.b * m2.a + m1.d * m2.b,\r\n c: m1.a * m2.c + m1.c * m2.d,\r\n d: m1.b * m2.c + m1.d * m2.d,\r\n e: m1.a * m2.e + m1.c * m2.f + m1.e,\r\n f: m1.b * m2.e + m1.d * m2.f + m1.f,\r\n };\r\n}\r\n\r\n/** The full 3×3 product, rows `[a c e] [b d f] [g h i]`. See {@link multiply}. */\r\nfunction multiplyProjective(m1: Matrix2D, m2: Matrix2D): Matrix2D {\r\n const g1 = m1.g ?? 0, h1 = m1.h ?? 0, i1 = m1.i ?? 1;\r\n const g2 = m2.g ?? 0, h2 = m2.h ?? 0, i2 = m2.i ?? 1;\r\n return {\r\n a: m1.a * m2.a + m1.c * m2.b + m1.e * g2,\r\n c: m1.a * m2.c + m1.c * m2.d + m1.e * h2,\r\n e: m1.a * m2.e + m1.c * m2.f + m1.e * i2,\r\n b: m1.b * m2.a + m1.d * m2.b + m1.f * g2,\r\n d: m1.b * m2.c + m1.d * m2.d + m1.f * h2,\r\n f: m1.b * m2.e + m1.d * m2.f + m1.f * i2,\r\n g: g1 * m2.a + h1 * m2.b + i1 * g2,\r\n h: g1 * m2.c + h1 * m2.d + i1 * h2,\r\n i: g1 * m2.e + h1 * m2.f + i1 * i2,\r\n };\r\n}\r\n\r\n/** @internal Map a point through the transform. */\r\nexport function applyToPoint(m: Matrix2D, p: Vector2): Vector2 {\r\n const x = m.a * p.x + m.c * p.y + m.e;\r\n const y = m.b * p.x + m.d * p.y + m.f;\r\n if (!isProjective(m)) return { x, y };\r\n const w = safeW((m.g ?? 0) * p.x + (m.h ?? 0) * p.y + (m.i ?? 1));\r\n return { x: x / w, y: y / w };\r\n}\r\n\r\n/**\r\n * The inverse transform, or `null` when `m` is singular (a zero scale collapses\r\n * the plane, so no inverse exists). Used to map a viewport-space point back into\r\n * a node's local space for hit testing.\r\n */\r\n/** @internal */\r\nexport function invert(m: Matrix2D): Matrix2D | null {\r\n if (isProjective(m)) return invertProjective(m);\r\n const det = m.a * m.d - m.b * m.c;\r\n if (det === 0 || !Number.isFinite(det)) return null;\r\n const inv = 1 / det;\r\n return {\r\n a: m.d * inv,\r\n b: -m.b * inv,\r\n c: -m.c * inv,\r\n d: m.a * inv,\r\n e: (m.c * m.f - m.d * m.e) * inv,\r\n f: (m.b * m.e - m.a * m.f) * inv,\r\n };\r\n}\r\n\r\n/**\r\n * The inverse of a homography — the adjugate over the determinant, written out\r\n * in this module's row naming. A projective inverse is still a homography, which\r\n * is what lets picking keep mapping a viewport point back into a node's local\r\n * space with nothing but {@link applyToPoint} once the node is tilted.\r\n */\r\nfunction invertProjective(m: Matrix2D): Matrix2D | null {\r\n const { a, b, c, d, e, f } = m;\r\n const g = m.g ?? 0, h = m.h ?? 0, i = m.i ?? 1;\r\n // Cofactors of the 3×3 | a c e | / | b d f | / | g h i |.\r\n const A = d * i - f * h;\r\n const C = f * g - b * i;\r\n const E = b * h - d * g;\r\n const det = a * A + c * C + e * E;\r\n if (det === 0 || !Number.isFinite(det)) return null;\r\n const inv = 1 / det;\r\n return {\r\n a: A * inv,\r\n c: (e * h - c * i) * inv,\r\n e: (c * f - e * d) * inv,\r\n b: C * inv,\r\n d: (a * i - e * g) * inv,\r\n f: (e * b - a * f) * inv,\r\n g: E * inv,\r\n h: (c * g - a * h) * inv,\r\n i: (a * d - c * b) * inv,\r\n };\r\n}\r\n\r\n/**\r\n * The viewport transform a camera scope pushes, in canvas (y-down) space — a\r\n * literal transcription of `RenderContext2D.beginCamera`:\r\n *\r\n * translate(vx, vy) · rotate(-heading) · scale(zoom) · translate(-lookAt.x, +lookAt.y)\r\n *\r\n * `lookAt` is a y-up world point, hence the sign flip on its y. `vx`/`vy` are the\r\n * viewport centre the camera's callers pass (`layoutBounds.x`, `-layoutBounds.y`).\r\n * Kept next to {@link nodeLocalMatrix} so the two stay in step with the renderer.\r\n */\r\n/** @internal */\r\nexport function cameraMatrix(\r\n vx: number, vy: number, lookAt: Vector2, zoom: number, heading: number,\r\n): Matrix2D {\r\n const rad = (-heading * Math.PI) / 180;\r\n const cos = Math.cos(rad);\r\n const sin = Math.sin(rad);\r\n // rotate(-heading) · scale(zoom), the same clockwise canvas convention as\r\n // nodeLocalMatrix's R·S block.\r\n const a = zoom * cos;\r\n const b = zoom * sin;\r\n const c = zoom * -sin;\r\n const d = zoom * cos;\r\n // Fold the trailing translate(-lookAt.x, +lookAt.y) into e/f.\r\n const tx = -lookAt.x;\r\n const ty = lookAt.y;\r\n return { a, b, c, d, e: vx + a * tx + c * ty, f: vy + b * tx + d * ty };\r\n}\r\n\r\n/**\r\n * Build the local transform for a node, matching the renderer's\r\n * `RenderContext2D.transform` exactly (canvas y-down space):\r\n * `T(cx + pivotX, cy + pivotY) · R(deg) · S(scale) · T(-pivotX, -pivotY)`.\r\n *\r\n * @param cx Canvas-space x of the node's layout-cell lookAt.\r\n * @param cy Canvas-space y of the node's layout-cell origin (y-down).\r\n * @param rotation Rotation in degrees, clockwise (canvas convention).\r\n * @param scale Uniform scale factor.\r\n * @param pivotX Pivot offset in pixels, x.\r\n * @param pivotY Pivot offset in pixels, y (canvas y-down).\r\n */\r\n/** @internal */\r\nexport function nodeLocalMatrix(\r\n cx: number, cy: number, rotation: number, scale: number, pivotX: number, pivotY: number,\r\n): Matrix2D {\r\n const rad = (rotation * Math.PI) / 180;\r\n const cos = Math.cos(rad);\r\n const sin = Math.sin(rad);\r\n // R(deg) · S(scale): clockwise rotation in canvas (y-down) is\r\n // | cos -sin | · | s 0 | = | s·cos -s·sin |\r\n // | sin cos | | 0 s | | s·sin s·cos |\r\n const a = scale * cos;\r\n const b = scale * sin;\r\n const c = scale * -sin;\r\n const d = scale * cos;\r\n // Fold the pivot translations into e/f:\r\n // T(cx+pivotX, cy+pivotY) · (RS) · T(-pivotX, -pivotY)\r\n return {\r\n a, b, c, d,\r\n e: cx + pivotX - (a * pivotX + c * pivotY),\r\n f: cy + pivotY - (b * pivotX + d * pivotY),\r\n };\r\n}\r\n\r\n/**\r\n * The out-of-plane half of a node's transform — the mirrors, the two extra\r\n * rotation axes, the push along z and the perspective divide that makes them\r\n * read as depth rather than as squashing. See {@link nodeProjectedMatrix}.\r\n */\r\n/** @internal */\r\nexport interface Projection3D {\r\n /** Tilt about the horizontal axis, degrees. Positive tips the top away. */\r\n rotationX: number;\r\n /** Tilt about the vertical axis, degrees. Positive swings the right edge away. */\r\n rotationY: number;\r\n /**\r\n * In-plane rotation belonging to the 3D block, degrees clockwise — the Z axis\r\n * of `Rx · Ry · Rz`.\r\n *\r\n * A prop of its own rather than a second name for the node's `rotation`, and\r\n * that is a deliberate separation: `rotation` is the node's **shape** — it\r\n * turns the box, the selection outline turns with it, and handles follow —\r\n * while this is part of the projection, which is paint. The two compose (a\r\n * Z rotation is a Z rotation, so they add), but they are two independent\r\n * numbers and editing one never moves the other.\r\n */\r\n rotationZ: number;\r\n /** Push along the view axis in px, applied after the rotations. Inert without `perspective`. */\r\n depth: number;\r\n /** Viewer distance in px. `0` is no perspective at all — a parallel projection. */\r\n perspective: number;\r\n /** Mirror across the node's vertical centre line. */\r\n flipHorizontal: boolean;\r\n /** Mirror across the node's horizontal centre line. */\r\n flipVertical: boolean;\r\n}\r\n\r\n/** @internal Every field of a {@link Projection3D} at rest — the plain 2D node. */\r\nexport const NO_PROJECTION_3D: Projection3D = {\r\n rotationX: 0,\r\n rotationY: 0,\r\n rotationZ: 0,\r\n depth: 0,\r\n perspective: 0,\r\n flipHorizontal: false,\r\n flipVertical: false,\r\n};\r\n\r\n/**\r\n * Whether `p` asks for anything {@link nodeLocalMatrix} cannot already express.\r\n * The gate in front of every projective path in the engine: a scene with no 3D\r\n * in it keeps the six-number matrix, the decomposed `translate/rotate/scale`\r\n * render path, and the affine `multiply` it always had.\r\n */\r\n/** @internal */\r\nexport function hasProjection3D(p: Projection3D): boolean {\r\n return (\r\n p.rotationX !== 0 ||\r\n p.rotationY !== 0 ||\r\n p.rotationZ !== 0 ||\r\n p.flipHorizontal ||\r\n p.flipVertical ||\r\n (p.perspective !== 0 && p.depth !== 0)\r\n );\r\n}\r\n\r\n/**\r\n * Whether a plane carrying this projection has turned its back on the viewer —\r\n * the test behind `backfaceVisible`.\r\n *\r\n * Read off the tilt alone. The plane's normal starts at `(0,0,1)` and comes out\r\n * of `Rx·Ry` with a z of `cos(rotationX)·cos(rotationY)`; the in-plane rotation\r\n * can't change which way it points, and neither, deliberately, can a *mirror*.\r\n * CSS derives the answer from the whole accumulated matrix, where a `scaleX(-1)`\r\n * inverts orientation and hides the element — which is a surprising way to lose\r\n * a node you only meant to flip. Here a flip is a flip and a turn is a turn.\r\n */\r\n/** @internal */\r\nexport function facesAway(rotationX: number, rotationY: number): boolean {\r\n const rad = Math.PI / 180;\r\n return Math.cos(rotationX * rad) * Math.cos(rotationY * rad) < 0;\r\n}\r\n\r\n/**\r\n * A node's local transform with the out-of-plane half folded in — the same space\r\n * and the same pivot convention as {@link nodeLocalMatrix}, which this reduces to\r\n * exactly when {@link hasProjection3D} is false.\r\n *\r\n * The composition, innermost first:\r\n *\r\n * `T(pivot) · P(perspective) · Tz(depth) · Rx · Ry · Rz(rotationZ + rotation) · S(scale) · T(-pivot) · F(flip)`\r\n *\r\n * — everything about the pivot except the mirrors, which reflect about the\r\n * node's own centre so that flipping cannot move the node (see `F` below),\r\n *\r\n * which is CSS's own order for `rotateX(a) rotateY(b) rotateZ(c)` — the in-plane\r\n * rotation innermost, so that adding a tilt never changes what the node's own\r\n * `rotation` already meant.\r\n *\r\n * The Z angle is the **sum** of the two in-plane rotations the node carries, and\r\n * they stay two: `rotation` turns the node's *shape* — its box turns with it, and\r\n * so does anything reading that box — while {@link Projection3D.rotationZ} is\r\n * part of the projection, which is paint (see `Node2D._localMatrix`). Summing them\r\n * is not a coupling but the definition of composing two rotations about one axis;\r\n * neither number moves when the other is edited.\r\n *\r\n * The content is planar — every point enters with `z = 0` — so the whole thing\r\n * collapses to a 3×3 homography over `(x, y, 1)` rather than needing a 4×4 and a\r\n * separate divide step. The projected z survives only as the perspective row.\r\n *\r\n * @param cx Canvas-space x of the node's positioned centre.\r\n * @param cy Canvas-space y of the node's positioned centre (y-down).\r\n * @param rotation In-plane rotation in degrees, clockwise (the Z axis).\r\n * @param scale Uniform scale factor.\r\n * @param pivotX Pivot offset from the centre in px, x.\r\n * @param pivotY Pivot offset from the centre in px, y (canvas y-down).\r\n * @param p The out-of-plane fields.\r\n */\r\n/** @internal */\r\nexport function nodeProjectedMatrix(\r\n cx: number, cy: number, rotation: number, scale: number, pivotX: number, pivotY: number,\r\n p: Projection3D,\r\n): Matrix2D {\r\n if (!hasProjection3D(p)) {\r\n return nodeLocalMatrix(cx, cy, rotation, scale, pivotX, pivotY);\r\n }\r\n const rad = Math.PI / 180;\r\n const ca = Math.cos(p.rotationX * rad), sa = Math.sin(p.rotationX * rad);\r\n const cb = Math.cos(p.rotationY * rad), sb = Math.sin(p.rotationY * rad);\r\n // The two in-plane rotations compose into one angle — see the note above.\r\n const cz = (rotation + p.rotationZ) * rad;\r\n const cc = Math.cos(cz), sc = Math.sin(cz);\r\n\r\n // The two columns of Rx·Ry·Rz that a z = 0 point can reach, scaled.\r\n const A = cb * cc * scale;\r\n const C = -cb * sc * scale;\r\n const B = (sa * sb * cc + ca * sc) * scale;\r\n const D = (ca * cc - sa * sb * sc) * scale;\r\n // The row that would have been the projected z, had we kept one.\r\n const G = (sa * sc - ca * sb * cc) * scale;\r\n const H = (ca * sb * sc + sa * cc) * scale;\r\n\r\n // Perspective: a point at depth z lands at x/w with w = 1 - z/perspective.\r\n // No perspective means a parallel projection — z is simply dropped, w stays\r\n // 1, and the result is affine (which is also why `depth` alone does nothing).\r\n const invP = p.perspective !== 0 ? 1 / p.perspective : 0;\r\n const g = -G * invP;\r\n const h = -H * invP;\r\n // The z the pivot itself sits at: -(G·pivotX + H·pivotY) is what the shift to\r\n // pivot-relative coordinates leaves in the z row, and `depth` is the push\r\n // along it, applied after the tilt (so it moves the whole tilted plane).\r\n const i = 1 - (p.depth - (G * pivotX + H * pivotY)) * invP;\r\n\r\n // Numerators about the pivot, then the trailing translate folded in. A\r\n // translate composes onto a homography as `+ t·w`, hence the g/h/i terms.\r\n const tx = cx + pivotX;\r\n const ty = cy + pivotY;\r\n\r\n // The mirrors, applied **innermost and about the node's own centre** — a\r\n // final column negation, which is what `M · diag(fx, fy, 1)` comes to.\r\n //\r\n // Not about the pivot, unlike everything else here, and that is the whole\r\n // point: a flip is an in-place reflection. Composing it with the pivot the\r\n // way CSS's `scaleX(-1)` does means a node hinged anywhere but its middle\r\n // *swings* when you flip it — its position readout changes, its corner\r\n // handles land somewhere else, and the gesture stops meaning \"mirror this\"\r\n // and starts meaning \"mirror this and move it\". Every design tool flips\r\n // about the selection's own centre for that reason. Written as a column\r\n // scale rather than a `T(c)·F·T(-c)` sandwich because that is what one\r\n // reduces to here — the local frame is already centred on the node — which\r\n // leaves `e`/`f`/`i` untouched and makes \"a flip cannot move the node\" a\r\n // property of the arithmetic rather than a thing to remember.\r\n const fx = p.flipHorizontal ? -1 : 1;\r\n const fy = p.flipVertical ? -1 : 1;\r\n return {\r\n a: (A + tx * g) * fx,\r\n c: (C + tx * h) * fy,\r\n e: -(A * pivotX + C * pivotY) + tx * i,\r\n b: (B + ty * g) * fx,\r\n d: (D + ty * h) * fy,\r\n f: -(B * pivotX + D * pivotY) + ty * i,\r\n g: g * fx,\r\n h: h * fy,\r\n i,\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"matrix2d.js","sourceRoot":"","sources":["../../../src/attributes/layout/matrix2d.ts"],"names":[],"mappings":"AAqCA,0FAA0F;AAC1F,MAAM,UAAU,YAAY,CAAC,CAAW;IACpC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,KAAK,GAAG,IAAI,CAAC;AACnB,SAAS,KAAK,CAAC,CAAS;IACpB,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;AAClC,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,QAAQ;IACpB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAClD,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,WAAW,CAAC,EAAU,EAAE,EAAU;IAC9C,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;AACpD,CAAC;AAED;;;;;;;;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,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC;QACtC,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC;QACtC,CAAC,EAAE,CAAC,GAAG,EAAE;QACT,CAAC,EAAE,CAAC,GAAG,EAAE;QACT,CAAC;KACJ,CAAC;AACN,CAAC","sourcesContent":["import { Vector2 } from \"@/attributes/layout/vector2\";\n\n/**\n * A 2D transform stored as the members of a 3×3 matrix:\n *\n * ```\n * | a c e |\n * | b d f |\n * | g h i |\n * ```\n *\n * Point mapping is `x' = (a·x + c·y + e) / w`, `y' = (b·x + d·y + f) / w`, with\n * `w = g·x + h·y + i`. This is the same column-order convention the DOM\n * uses, so matrices compose in draw order: `parent.multiply(child)` is the world\n * transform of `child`.\n *\n * **The bottom row is optional, and leaving it off means `[0 0 1]`** — an\n * ordinary affine transform, where `w` is 1 everywhere and the divide falls\n * away. Every matrix in the engine was exactly that until\n * {@link nodeProjectedMatrix} arrived: a node tilted out of its own plane\n * projects through a *homography*, and a homography does not fit in six numbers.\n * Rather than a second matrix type — with a second `multiply`, `invert` and\n * `applyToPoint` beside it, which is precisely how a renderer and a hit test end\n * up disagreeing about where a node is — the row lives here, and everything that\n * has no use for it simply omits it.\n */\n/** @internal */\nexport interface Matrix2D {\n a: number; b: number; c: number; d: number; e: number; f: number;\n /** Perspective row, x term. Omitted on an affine transform (means `0`). */\n g?: number;\n /** Perspective row, y term. Omitted on an affine transform (means `0`). */\n h?: number;\n /** Perspective row, constant term. Omitted on an affine transform (means `1`). */\n i?: number;\n}\n\n/** @internal Whether `m` carries a perspective row — i.e. whether `w` is not always 1. */\nexport function isProjective(m: Matrix2D): boolean {\n return (m.g ?? 0) !== 0 || (m.h ?? 0) !== 0 || (m.i ?? 1) !== 1;\n}\n\n/**\n * Guard the perspective divide. A point on the vanishing line has `w = 0` and\n * projects to infinity, which is a real answer no coordinate can hold; clamping\n * to a tiny same-signed `w` sends it far off-screen instead, which is where it\n * belongs and is a number the caller can keep doing arithmetic with. Without\n * this, one degenerate corner turns an anchor set into `Infinity`/`NaN` and\n * takes the selection box, the hit test and any layout reading it with it.\n */\nconst MIN_W = 1e-6;\nfunction safeW(w: number): number {\n if (w > MIN_W || w < -MIN_W) return w;\n return w < 0 ? -MIN_W : MIN_W;\n}\n\n/** @internal The identity transform — maps every point to itself. */\nexport function identity(): Matrix2D {\n return { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };\n}\n\n/** @internal Pure translation by (tx, ty). */\nexport function translation(tx: number, ty: number): Matrix2D {\n return { a: 1, b: 0, c: 0, d: 1, e: tx, f: ty };\n}\n\n/**\n * `m1 · m2` — the transform that applies `m2` first, then `m1`. Composing an\n * ancestor with a descendant (`ancestor.multiply(descendant)`) yields the\n * descendant's world transform.\n *\n * Two affine matrices take the six-member path they always did — that is every\n * composition in a scene with no 3D in it, once per node per parent per frame —\n * and the general 3×3 product runs only when one side actually carries a\n * perspective row.\n */\n/** @internal */\nexport function multiply(m1: Matrix2D, m2: Matrix2D): Matrix2D {\n if (isProjective(m1) || isProjective(m2)) return multiplyProjective(m1, m2);\n return {\n a: m1.a * m2.a + m1.c * m2.b,\n b: m1.b * m2.a + m1.d * m2.b,\n c: m1.a * m2.c + m1.c * m2.d,\n d: m1.b * m2.c + m1.d * m2.d,\n e: m1.a * m2.e + m1.c * m2.f + m1.e,\n f: m1.b * m2.e + m1.d * m2.f + m1.f,\n };\n}\n\n/** The full 3×3 product, rows `[a c e] [b d f] [g h i]`. See {@link multiply}. */\nfunction multiplyProjective(m1: Matrix2D, m2: Matrix2D): Matrix2D {\n const g1 = m1.g ?? 0, h1 = m1.h ?? 0, i1 = m1.i ?? 1;\n const g2 = m2.g ?? 0, h2 = m2.h ?? 0, i2 = m2.i ?? 1;\n return {\n a: m1.a * m2.a + m1.c * m2.b + m1.e * g2,\n c: m1.a * m2.c + m1.c * m2.d + m1.e * h2,\n e: m1.a * m2.e + m1.c * m2.f + m1.e * i2,\n b: m1.b * m2.a + m1.d * m2.b + m1.f * g2,\n d: m1.b * m2.c + m1.d * m2.d + m1.f * h2,\n f: m1.b * m2.e + m1.d * m2.f + m1.f * i2,\n g: g1 * m2.a + h1 * m2.b + i1 * g2,\n h: g1 * m2.c + h1 * m2.d + i1 * h2,\n i: g1 * m2.e + h1 * m2.f + i1 * i2,\n };\n}\n\n/** @internal Map a point through the transform. */\nexport function applyToPoint(m: Matrix2D, p: Vector2): Vector2 {\n const x = m.a * p.x + m.c * p.y + m.e;\n const y = m.b * p.x + m.d * p.y + m.f;\n if (!isProjective(m)) return { x, y };\n const w = safeW((m.g ?? 0) * p.x + (m.h ?? 0) * p.y + (m.i ?? 1));\n return { x: x / w, y: y / w };\n}\n\n/**\n * The inverse transform, or `null` when `m` is singular (a zero scale collapses\n * the plane, so no inverse exists). Used to map a viewport-space point back into\n * a node's local space for hit testing.\n */\n/** @internal */\nexport function invert(m: Matrix2D): Matrix2D | null {\n if (isProjective(m)) return invertProjective(m);\n const det = m.a * m.d - m.b * m.c;\n if (det === 0 || !Number.isFinite(det)) return null;\n const inv = 1 / det;\n return {\n a: m.d * inv,\n b: -m.b * inv,\n c: -m.c * inv,\n d: m.a * inv,\n e: (m.c * m.f - m.d * m.e) * inv,\n f: (m.b * m.e - m.a * m.f) * inv,\n };\n}\n\n/**\n * The inverse of a homography — the adjugate over the determinant, written out\n * in this module's row naming. A projective inverse is still a homography, which\n * is what lets picking keep mapping a viewport point back into a node's local\n * space with nothing but {@link applyToPoint} once the node is tilted.\n */\nfunction invertProjective(m: Matrix2D): Matrix2D | null {\n const { a, b, c, d, e, f } = m;\n const g = m.g ?? 0, h = m.h ?? 0, i = m.i ?? 1;\n // Cofactors of the 3×3 | a c e | / | b d f | / | g h i |.\n const A = d * i - f * h;\n const C = f * g - b * i;\n const E = b * h - d * g;\n const det = a * A + c * C + e * E;\n if (det === 0 || !Number.isFinite(det)) return null;\n const inv = 1 / det;\n return {\n a: A * inv,\n c: (e * h - c * i) * inv,\n e: (c * f - e * d) * inv,\n b: C * inv,\n d: (a * i - e * g) * inv,\n f: (e * b - a * f) * inv,\n g: E * inv,\n h: (c * g - a * h) * inv,\n i: (a * d - c * b) * inv,\n };\n}\n\n/**\n * The viewport transform a camera scope pushes, in canvas (y-down) space — a\n * literal transcription of `RenderContext2D.beginCamera`:\n *\n * translate(vx, vy) · rotate(-heading) · scale(zoom) · translate(-lookAt.x, +lookAt.y)\n *\n * `lookAt` is a y-up world point, hence the sign flip on its y. `vx`/`vy` are the\n * viewport centre the camera's callers pass (`layoutBounds.x`, `-layoutBounds.y`).\n * Kept next to {@link nodeLocalMatrix} so the two stay in step with the renderer.\n */\n/** @internal */\nexport function cameraMatrix(\n vx: number, vy: number, lookAt: Vector2, zoom: number, heading: number,\n): Matrix2D {\n const rad = (-heading * Math.PI) / 180;\n const cos = Math.cos(rad);\n const sin = Math.sin(rad);\n // rotate(-heading) · scale(zoom), the same clockwise canvas convention as\n // nodeLocalMatrix's R·S block.\n const a = zoom * cos;\n const b = zoom * sin;\n const c = zoom * -sin;\n const d = zoom * cos;\n // Fold the trailing translate(-lookAt.x, +lookAt.y) into e/f.\n const tx = -lookAt.x;\n const ty = lookAt.y;\n return { a, b, c, d, e: vx + a * tx + c * ty, f: vy + b * tx + d * ty };\n}\n\n/**\n * Build the local transform for a node, matching the renderer's\n * `RenderContext2D.transform` exactly (canvas y-down space):\n * `T(cx + pivotX, cy + pivotY) · R(deg) · S(scale) · T(-pivotX, -pivotY)`.\n *\n * @param cx Canvas-space x of the node's layout-cell lookAt.\n * @param cy Canvas-space y of the node's layout-cell origin (y-down).\n * @param rotation Rotation in degrees, clockwise (canvas convention).\n * @param scale Uniform scale factor.\n * @param pivotX Pivot offset in pixels, x.\n * @param pivotY Pivot offset in pixels, y (canvas y-down).\n */\n/** @internal */\nexport function nodeLocalMatrix(\n cx: number, cy: number, rotation: number, scale: number, pivotX: number, pivotY: number,\n): Matrix2D {\n const rad = (rotation * Math.PI) / 180;\n const cos = Math.cos(rad);\n const sin = Math.sin(rad);\n // R(deg) · S(scale): clockwise rotation in canvas (y-down) is\n // | cos -sin | · | s 0 | = | s·cos -s·sin |\n // | sin cos | | 0 s | | s·sin s·cos |\n const a = scale * cos;\n const b = scale * sin;\n const c = scale * -sin;\n const d = scale * cos;\n // Fold the pivot translations into e/f:\n // T(cx+pivotX, cy+pivotY) · (RS) · T(-pivotX, -pivotY)\n return {\n a, b, c, d,\n e: cx + pivotX - (a * pivotX + c * pivotY),\n f: cy + pivotY - (b * pivotX + d * pivotY),\n };\n}\n\n/**\n * The out-of-plane half of a node's transform — the mirrors, the two extra\n * rotation axes, the push along z and the perspective divide that makes them\n * read as depth rather than as squashing. See {@link nodeProjectedMatrix}.\n */\n/** @internal */\nexport interface Projection3D {\n /** Tilt about the horizontal axis, degrees. Positive tips the top away. */\n rotationX: number;\n /** Tilt about the vertical axis, degrees. Positive swings the right edge away. */\n rotationY: number;\n /**\n * In-plane rotation belonging to the 3D block, degrees clockwise — the Z axis\n * of `Rx · Ry · Rz`.\n *\n * A prop of its own rather than a second name for the node's `rotation`, and\n * that is a deliberate separation: `rotation` is the node's **shape** — it\n * turns the box, the selection outline turns with it, and handles follow —\n * while this is part of the projection, which is paint. The two compose (a\n * Z rotation is a Z rotation, so they add), but they are two independent\n * numbers and editing one never moves the other.\n */\n rotationZ: number;\n /** Push along the view axis in px, applied after the rotations. Inert without `perspective`. */\n depth: number;\n /** Viewer distance in px. `0` is no perspective at all — a parallel projection. */\n perspective: number;\n /** Mirror across the node's vertical centre line. */\n flipHorizontal: boolean;\n /** Mirror across the node's horizontal centre line. */\n flipVertical: boolean;\n}\n\n/** @internal Every field of a {@link Projection3D} at rest — the plain 2D node. */\nexport const NO_PROJECTION_3D: Projection3D = {\n rotationX: 0,\n rotationY: 0,\n rotationZ: 0,\n depth: 0,\n perspective: 0,\n flipHorizontal: false,\n flipVertical: false,\n};\n\n/**\n * Whether `p` asks for anything {@link nodeLocalMatrix} cannot already express.\n * The gate in front of every projective path in the engine: a scene with no 3D\n * in it keeps the six-number matrix, the decomposed `translate/rotate/scale`\n * render path, and the affine `multiply` it always had.\n */\n/** @internal */\nexport function hasProjection3D(p: Projection3D): boolean {\n return (\n p.rotationX !== 0 ||\n p.rotationY !== 0 ||\n p.rotationZ !== 0 ||\n p.flipHorizontal ||\n p.flipVertical ||\n (p.perspective !== 0 && p.depth !== 0)\n );\n}\n\n/**\n * Whether a plane carrying this projection has turned its back on the viewer —\n * the test behind `backfaceVisible`.\n *\n * Read off the tilt alone. The plane's normal starts at `(0,0,1)` and comes out\n * of `Rx·Ry` with a z of `cos(rotationX)·cos(rotationY)`; the in-plane rotation\n * can't change which way it points, and neither, deliberately, can a *mirror*.\n * CSS derives the answer from the whole accumulated matrix, where a `scaleX(-1)`\n * inverts orientation and hides the element — which is a surprising way to lose\n * a node you only meant to flip. Here a flip is a flip and a turn is a turn.\n */\n/** @internal */\nexport function facesAway(rotationX: number, rotationY: number): boolean {\n const rad = Math.PI / 180;\n return Math.cos(rotationX * rad) * Math.cos(rotationY * rad) < 0;\n}\n\n/**\n * A node's local transform with the out-of-plane half folded in — the same space\n * and the same pivot convention as {@link nodeLocalMatrix}, which this reduces to\n * exactly when {@link hasProjection3D} is false.\n *\n * The composition, innermost first:\n *\n * `T(pivot) · P(perspective) · Tz(depth) · Rx · Ry · Rz(rotationZ + rotation) · S(scale) · T(-pivot) · F(flip)`\n *\n * — everything about the pivot except the mirrors, which reflect about the\n * node's own centre so that flipping cannot move the node (see `F` below),\n *\n * which is CSS's own order for `rotateX(a) rotateY(b) rotateZ(c)` — the in-plane\n * rotation innermost, so that adding a tilt never changes what the node's own\n * `rotation` already meant.\n *\n * The Z angle is the **sum** of the two in-plane rotations the node carries, and\n * they stay two: `rotation` turns the node's *shape* — its box turns with it, and\n * so does anything reading that box — while {@link Projection3D.rotationZ} is\n * part of the projection, which is paint (see `Node2D._localMatrix`). Summing them\n * is not a coupling but the definition of composing two rotations about one axis;\n * neither number moves when the other is edited.\n *\n * The content is planar — every point enters with `z = 0` — so the whole thing\n * collapses to a 3×3 homography over `(x, y, 1)` rather than needing a 4×4 and a\n * separate divide step. The projected z survives only as the perspective row.\n *\n * @param cx Canvas-space x of the node's positioned centre.\n * @param cy Canvas-space y of the node's positioned centre (y-down).\n * @param rotation In-plane rotation in degrees, clockwise (the Z axis).\n * @param scale Uniform scale factor.\n * @param pivotX Pivot offset from the centre in px, x.\n * @param pivotY Pivot offset from the centre in px, y (canvas y-down).\n * @param p The out-of-plane fields.\n */\n/** @internal */\nexport function nodeProjectedMatrix(\n cx: number, cy: number, rotation: number, scale: number, pivotX: number, pivotY: number,\n p: Projection3D,\n): Matrix2D {\n if (!hasProjection3D(p)) {\n return nodeLocalMatrix(cx, cy, rotation, scale, pivotX, pivotY);\n }\n const rad = Math.PI / 180;\n const ca = Math.cos(p.rotationX * rad), sa = Math.sin(p.rotationX * rad);\n const cb = Math.cos(p.rotationY * rad), sb = Math.sin(p.rotationY * rad);\n // The two in-plane rotations compose into one angle — see the note above.\n const cz = (rotation + p.rotationZ) * rad;\n const cc = Math.cos(cz), sc = Math.sin(cz);\n\n // The two columns of Rx·Ry·Rz that a z = 0 point can reach, scaled.\n const A = cb * cc * scale;\n const C = -cb * sc * scale;\n const B = (sa * sb * cc + ca * sc) * scale;\n const D = (ca * cc - sa * sb * sc) * scale;\n // The row that would have been the projected z, had we kept one.\n const G = (sa * sc - ca * sb * cc) * scale;\n const H = (ca * sb * sc + sa * cc) * scale;\n\n // Perspective: a point at depth z lands at x/w with w = 1 - z/perspective.\n // No perspective means a parallel projection — z is simply dropped, w stays\n // 1, and the result is affine (which is also why `depth` alone does nothing).\n const invP = p.perspective !== 0 ? 1 / p.perspective : 0;\n const g = -G * invP;\n const h = -H * invP;\n // The z the pivot itself sits at: -(G·pivotX + H·pivotY) is what the shift to\n // pivot-relative coordinates leaves in the z row, and `depth` is the push\n // along it, applied after the tilt (so it moves the whole tilted plane).\n const i = 1 - (p.depth - (G * pivotX + H * pivotY)) * invP;\n\n // Numerators about the pivot, then the trailing translate folded in. A\n // translate composes onto a homography as `+ t·w`, hence the g/h/i terms.\n const tx = cx + pivotX;\n const ty = cy + pivotY;\n\n // The mirrors, applied **innermost and about the node's own centre** — a\n // final column negation, which is what `M · diag(fx, fy, 1)` comes to.\n //\n // Not about the pivot, unlike everything else here, and that is the whole\n // point: a flip is an in-place reflection. Composing it with the pivot the\n // way CSS's `scaleX(-1)` does means a node hinged anywhere but its middle\n // *swings* when you flip it — its position readout changes, its corner\n // handles land somewhere else, and the gesture stops meaning \"mirror this\"\n // and starts meaning \"mirror this and move it\". Every design tool flips\n // about the selection's own centre for that reason. Written as a column\n // scale rather than a `T(c)·F·T(-c)` sandwich because that is what one\n // reduces to here — the local frame is already centred on the node — which\n // leaves `e`/`f`/`i` untouched and makes \"a flip cannot move the node\" a\n // property of the arithmetic rather than a thing to remember.\n const fx = p.flipHorizontal ? -1 : 1;\n const fy = p.flipVertical ? -1 : 1;\n return {\n a: (A + tx * g) * fx,\n c: (C + tx * h) * fy,\n e: -(A * pivotX + C * pivotY) + tx * i,\n b: (B + ty * g) * fx,\n d: (D + ty * h) * fy,\n f: -(B * pivotX + D * pivotY) + ty * i,\n g: g * fx,\n h: h * fy,\n i,\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"size.js","sourceRoot":"","sources":["../../../src/attributes/layout/size.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS1C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAoF;IACtG,OA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a,CAAC;QAC3C,IAAI,KAAK,KAAK,KAAK;YAAE,OAAO,WAAW,CAAC;QACxC,OAAO,aAAa,CAAC;IACzB,CAAC;IACD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ;CAC/C,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\r\nimport type { AttributeOps } from \"@/attributes/shared/operators\";\r\n\r\n/** Width and height in pixels. */\r\nexport interface Size2D {\r\n width: number;\r\n height: number;\r\n}\r\n\r\n/**\r\n * The {@link Size2D} attribute's op set: `lerp` interpolates `width`/`height`\r\n * independently. `expand` fills the `size` shorthand into `width`/`height` on a\r\n * props-like object, in place. `size` is sugar for \"the same value on both\r\n * axes\"; explicit `width`/`height` take precedence over it (same precedence as\r\n * `insetsOps.resolve`'s side-vs-shorthand rule), so `{ size: 200, width: 100 }`\r\n * keeps `width: 100` and only fills in `height: 200`. No-op when `size` is\r\n * absent. The reactive-binding form (`size: () => SizeInput`) is supported —\r\n * both axes are bound to the same callback, re-evaluated independently per axis.\r\n */\r\nexport const size2DOps: AttributeOps<Size2D, Size2D> & { expand(props: Record<string, unknown>): void } = {\r\n resolve: (value) => value,\r\n lerp: (from, to, t) => ({ width: lerpNumber(from.width, to.width, t), height: lerpNumber(from.height, to.height, t) }),\r\n expand: (props) => {\r\n if (props.size === undefined) return;\r\n if (props.width === undefined) props.width = props.size;\r\n if (props.height === undefined) props.height = props.size;\r\n },\r\n};\r\n\r\n/**\r\n * Sizing behavior for a node dimension.\r\n * - `\"fill\"`: expand to fill available space from the parent\r\n * - `\"hug\"`: shrink to fit the node's own content\r\n */\r\n/** @internal */\r\nexport type SizeType = \"fill\" | \"hug\";\r\n\r\n/** A dimension can be specified as a behavior keyword or a fixed pixel value. */\r\n/** @internal */\r\nexport type SizeInput = SizeType | number;\r\n\r\n/**\r\n * The dimension-keyword `SizeInput` attribute's op set — `width`/`height`'s.\r\n * `lerp` interpolates two numbers; a keyword on either end hard-switches at t=1.\r\n * `resolveLayout` turns a `SizeInput` into a concrete number for layout, given\r\n * the space available and the size contents would need; `isAuto` reports\r\n * whether a dimension needs layout to resolve at all (a keyword) as opposed to\r\n * being a fixed number.\r\n */\r\nexport const sizeInputOps: AttributeOps<SizeInput, SizeInput> & {\r\n resolveLayout(input: SizeInput, availableSize: number, contentSize: number): number;\r\n isAuto(input: SizeInput): boolean;\r\n} = {\r\n resolve: (value) => value,\r\n lerp: (from, to, t) => {\r\n if (typeof from === \"number\" && typeof to === \"number\") {\r\n return lerpNumber(from, to, t);\r\n }\r\n return t === 1 ? to : from;\r\n },\r\n resolveLayout: (input, availableSize, contentSize) => {\r\n if (typeof input === \"number\") return input;\r\n if (input === \"fill\") return availableSize;\r\n if (input === \"hug\") return contentSize;\r\n return availableSize;\r\n },\r\n isAuto: (input) => typeof input !== \"number\",\r\n};\r\n"]}
1
+ {"version":3,"file":"size.js","sourceRoot":"","sources":["../../../src/attributes/layout/size.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS1C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAoF;IACtG,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;IACzB,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC;IACtH,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;QACd,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS;YAAE,OAAO;QACrC,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;YAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;QACxD,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;YAAE,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC;IAC9D,CAAC;CACJ,CAAC;AAcF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAGrB;IACA,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;IACzB,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE;QAClB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;YACrD,OAAO,UAAU,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/B,CAAC;IACD,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE;QACjD,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QAC5C,IAAI,KAAK,KAAK,MAAM;YAAE,OAAO,aAAa,CAAC;QAC3C,IAAI,KAAK,KAAK,KAAK;YAAE,OAAO,WAAW,CAAC;QACxC,OAAO,aAAa,CAAC;IACzB,CAAC;IACD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ;CAC/C,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { AttributeOps } from \"@/attributes/shared/operators\";\n\n/** Width and height in pixels. */\nexport interface Size2D {\n width: number;\n height: number;\n}\n\n/**\n * The {@link Size2D} attribute's op set: `lerp` interpolates `width`/`height`\n * independently. `expand` fills the `size` shorthand into `width`/`height` on a\n * props-like object, in place. `size` is sugar for \"the same value on both\n * axes\"; explicit `width`/`height` take precedence over it (same precedence as\n * `insetsOps.resolve`'s side-vs-shorthand rule), so `{ size: 200, width: 100 }`\n * keeps `width: 100` and only fills in `height: 200`. No-op when `size` is\n * absent. The reactive-binding form (`size: () => SizeInput`) is supported —\n * both axes are bound to the same callback, re-evaluated independently per axis.\n */\nexport const size2DOps: AttributeOps<Size2D, Size2D> & { expand(props: Record<string, unknown>): void } = {\n resolve: (value) => value,\n lerp: (from, to, t) => ({ width: lerpNumber(from.width, to.width, t), height: lerpNumber(from.height, to.height, t) }),\n expand: (props) => {\n if (props.size === undefined) return;\n if (props.width === undefined) props.width = props.size;\n if (props.height === undefined) props.height = props.size;\n },\n};\n\n/**\n * Sizing behavior for a node dimension.\n * - `\"fill\"`: expand to fill available space from the parent\n * - `\"hug\"`: shrink to fit the node's own content\n */\n/** @internal */\nexport type SizeType = \"fill\" | \"hug\";\n\n/** A dimension can be specified as a behavior keyword or a fixed pixel value. */\n/** @internal */\nexport type SizeInput = SizeType | number;\n\n/**\n * The dimension-keyword `SizeInput` attribute's op set — `width`/`height`'s.\n * `lerp` interpolates two numbers; a keyword on either end hard-switches at t=1.\n * `resolveLayout` turns a `SizeInput` into a concrete number for layout, given\n * the space available and the size contents would need; `isAuto` reports\n * whether a dimension needs layout to resolve at all (a keyword) as opposed to\n * being a fixed number.\n */\nexport const sizeInputOps: AttributeOps<SizeInput, SizeInput> & {\n resolveLayout(input: SizeInput, availableSize: number, contentSize: number): number;\n isAuto(input: SizeInput): boolean;\n} = {\n resolve: (value) => value,\n lerp: (from, to, t) => {\n if (typeof from === \"number\" && typeof to === \"number\") {\n return lerpNumber(from, to, t);\n }\n return t === 1 ? to : from;\n },\n resolveLayout: (input, availableSize, contentSize) => {\n if (typeof input === \"number\") return input;\n if (input === \"fill\") return availableSize;\n if (input === \"hug\") return contentSize;\n return availableSize;\n },\n isAuto: (input) => typeof input !== \"number\",\n};\n"]}
@@ -139,7 +139,7 @@ export function spacePlane(view, box) {
139
139
  }
140
140
  /**
141
141
  * Below this `w` a point is at or behind the camera. Not zero: a point just in
142
- * front of the lens projects so far out that Skia's float32 path maths loses it,
142
+ * front of the lens projects so far out that float32 path maths loses it,
143
143
  * and at 1/100 the layer is already magnified a hundredfold — well past the edge
144
144
  * of any frame.
145
145
  */
@@ -1 +1 @@
1
- {"version":3,"file":"space3d.js","sourceRoot":"","sources":["../../../src/attributes/layout/space3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAoB1C,0GAA0G;AAC1G,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,EAAU,EAAE,CAAS;IAC1D,MAAM,GAAG,GAAW,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IACvF,IAAI,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,EAAE,CAAC,CAAC,KAAK,SAAS;QAAE,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9F,OAAO,GAAG,CAAC;AACf,CAAC;AA+BD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gBAAgB,GAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9E,wFAAwF;AACxF,MAAM,UAAU,eAAe,CAAC,CAAU,EAAE,CAAU;IAClD,MAAM,GAAG,GAAG,IAAI,KAAK,CAAS,EAAE,CAAC,CAAC;IAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACzB,MAAM,EAAE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IAAI,CAAC,CAAC;QACjB,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC;YAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { Matrix2D, Projection3D } from \"./matrix2d\";\nimport type { Vector2 } from \"./vector2\";\n\n/**\n * The maths of a 2.5D space: flat nodes placed in one 3D frame and seen through\n * a single orbiting camera, rather than each projecting through a perspective of\n * its own (see {@link import(\"./matrix2d\").nodeProjectedMatrix}).\n *\n * Everything here works in the space root's canvas frame — x right, y **down**,\n * z toward the viewer, the frame `nodeProjectedMatrix` already tilts nodes in —\n * so a node's transform is the same rotation block with the perspective divide\n * lifted out and applied once, by the camera, to the whole scene.\n */\n\n/** A point a camera is aimed at. `z` is depth, toward the viewer, as a node's `depth` is. */\nexport interface LookAt extends Vector2 {\n z?: number;\n}\n\n/** Lerp a {@link LookAt}, leaving `z` off when neither end has one so a flat camera stays two numbers. */\nexport function lerpLookAt(from: LookAt, to: LookAt, t: number): LookAt {\n const out: LookAt = { x: lerpNumber(from.x, to.x, t), y: lerpNumber(from.y, to.y, t) };\n if (from.z !== undefined || to.z !== undefined) out.z = lerpNumber(from.z ?? 0, to.z ?? 0, t);\n return out;\n}\n\n/**\n * A space root's camera for one frame.\n *\n * `orbit`/`elevation` mean what they mean on `Camera3D` (`render3d/camera.ts`,\n * `resolveCameraPlacement`): orbit 0 is head-on, a positive orbit moves the\n * camera toward +x, a positive elevation lifts it. `perspective` is the camera's\n * distance from `lookAt` at `dolly: 0`, CSS's convention, so the focus plane\n * draws 1:1; `0` is a parallel projection. `zoom` and `heading` apply after the\n * projection, which makes them lens zoom and roll exactly.\n */\n/** @internal */\nexport interface SpaceCamera {\n perspective: number;\n orbit: number;\n elevation: number;\n dolly: number;\n /** Authored y-up, like every other scene point. */\n lookAt: LookAt;\n zoom: number;\n heading: number;\n /** The viewport centre in the root's canvas frame. */\n viewportX: number;\n viewportY: number;\n}\n\n/** Row-major 3×4 affine transform: `[r00 r01 r02 tx, r10 r11 r12 ty, r20 r21 r22 tz]`. */\n/** @internal */\nexport type Affine3 = readonly number[];\n\n/** @internal */\nexport const IDENTITY_AFFINE3: Affine3 = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0];\n\n/** @internal `a · b` — applies `b` first, the same order as `matrix2d`'s `multiply`. */\nexport function multiplyAffine3(a: Affine3, b: Affine3): Affine3 {\n const out = new Array<number>(12);\n for (let r = 0; r < 3; r++) {\n const a0 = a[r * 4], a1 = a[r * 4 + 1], a2 = a[r * 4 + 2], a3 = a[r * 4 + 3];\n out[r * 4] = a0 * b[0] + a1 * b[4] + a2 * b[8];\n out[r * 4 + 1] = a0 * b[1] + a1 * b[5] + a2 * b[9];\n out[r * 4 + 2] = a0 * b[2] + a1 * b[6] + a2 * b[10];\n out[r * 4 + 3] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3;\n }\n return out;\n}\n\n/**\n * A node's transform in its parent's 3D frame — {@link import(\"./matrix2d\").nodeProjectedMatrix}\n * without the perspective, which in a space belongs to the camera:\n *\n * `T(cx + pivotX, cy + pivotY, depth) · Rx · Ry · Rz(rotation + rotationZ) · S(scale) · T(-pivot) · F(flip)`\n *\n * `p.perspective` is ignored. The scale is uniform in all three axes, so a\n * scaled group scales the depth its children sit at too.\n */\n/** @internal */\nexport function nodeSpaceMatrix(\n cx: number, cy: number, rotation: number, scale: number, pivotX: number, pivotY: number,\n p: Projection3D,\n): Affine3 {\n const rad = Math.PI / 180;\n const ca = Math.cos(p.rotationX * rad), sa = Math.sin(p.rotationX * rad);\n const cb = Math.cos(p.rotationY * rad), sb = Math.sin(p.rotationY * rad);\n const cz = (rotation + p.rotationZ) * rad;\n const cc = Math.cos(cz), sc = Math.sin(cz);\n\n const r00 = cb * cc * scale, r01 = -cb * sc * scale, r02 = sb * scale;\n const r10 = (sa * sb * cc + ca * sc) * scale, r11 = (ca * cc - sa * sb * sc) * scale, r12 = -sa * cb * scale;\n const r20 = (sa * sc - ca * sb * cc) * scale, r21 = (ca * sb * sc + sa * cc) * scale, r22 = ca * cb * scale;\n\n // Mirrors negate the two in-plane columns only, about the node's own centre —\n // the same in-place reflection `nodeProjectedMatrix` makes.\n const fx = p.flipHorizontal ? -1 : 1;\n const fy = p.flipVertical ? -1 : 1;\n return [\n r00 * fx, r01 * fy, r02, cx + pivotX - (r00 * pivotX + r01 * pivotY),\n r10 * fx, r11 * fy, r12, cy + pivotY - (r10 * pivotX + r11 * pivotY),\n r20 * fx, r21 * fy, r22, p.depth - (r20 * pivotX + r21 * pivotY),\n ];\n}\n\n/**\n * The camera's view of the root frame: `T(0, 0, dolly) · R(camera)ᵀ · T(-lookAt)`.\n *\n * Built from the camera's own axes rather than from a look-at basis, so there is\n * no pole to clamp: an elevation past 90° keeps turning rather than snapping to\n * an arbitrary roll.\n */\n/** @internal */\nexport function spaceViewMatrix(cam: SpaceCamera): Affine3 {\n const rad = Math.PI / 180;\n const sa = Math.sin(cam.orbit * rad), ca = Math.cos(cam.orbit * rad);\n const se = Math.sin(cam.elevation * rad), ce = Math.cos(cam.elevation * rad);\n // Rows: the camera's right, screen-down and toward-camera axes.\n const r0 = ca, r1 = 0, r2 = -sa;\n const d0 = sa * se, d1 = ce, d2 = ca * se;\n const f0 = sa * ce, f1 = -se, f2 = ca * ce;\n const tx = cam.lookAt.x, ty = -cam.lookAt.y, tz = cam.lookAt.z ?? 0;\n return [\n r0, r1, r2, -(r0 * tx + r1 * ty + r2 * tz),\n d0, d1, d2, -(d0 * tx + d1 * ty + d2 * tz),\n f0, f1, f2, -(f0 * tx + f1 * ty + f2 * tz) + cam.dolly,\n ];\n}\n\n/**\n * Project a view-space transform onto the screen: the homography that maps a\n * node's local `(x, y, 1)` to the root's canvas, perspective divide and the\n * camera's zoom and roll included.\n *\n * At rest — no orbit, elevation, dolly or `lookAt.z`, and a node with no depth\n * or tilt — this is exactly `cameraMatrix · local`, which is what makes turning\n * a space on invisible until something moves in depth.\n */\n/** @internal */\nexport function spaceScreenMatrix(cam: SpaceCamera, view: Affine3): Matrix2D {\n const invP = cam.perspective > 0 ? 1 / cam.perspective : 0;\n const wx = -view[8] * invP;\n const wy = -view[9] * invP;\n const w0 = 1 - view[11] * invP;\n\n const rad = (-cam.heading * Math.PI) / 180;\n const k = cam.zoom;\n const c00 = k * Math.cos(rad), c01 = -k * Math.sin(rad);\n const c10 = k * Math.sin(rad), c11 = k * Math.cos(rad);\n const vx = cam.viewportX, vy = cam.viewportY;\n\n const m: Matrix2D = {\n a: c00 * view[0] + c01 * view[4] + vx * wx,\n c: c00 * view[1] + c01 * view[5] + vx * wy,\n e: c00 * view[3] + c01 * view[7] + vx * w0,\n b: c10 * view[0] + c11 * view[4] + vy * wx,\n d: c10 * view[1] + c11 * view[5] + vy * wy,\n f: c10 * view[3] + c11 * view[7] + vy * w0,\n };\n // A parallel projection stays affine, so it keeps the six-number fast paths.\n if (invP !== 0) {\n m.g = wx;\n m.h = wy;\n m.i = w0;\n }\n return m;\n}\n\n/** A node's box in view space: what sorting, culling and the backface test read. */\n/** @internal */\nexport interface SpacePlane {\n /** The four corners, `x, y, z` each, top-left clockwise. */\n corners: readonly number[];\n cx: number;\n cy: number;\n cz: number;\n /** Unit normal, pointing out of the node's front. */\n nx: number;\n ny: number;\n nz: number;\n}\n\n/**\n * `box` — the node's ink, centred and y-down in its local frame — through `view`.\n *\n * The normal is the transform's z column, which a mirror never touches: a flip\n * reflects the node without turning it around, so it cannot show its back.\n */\n/** @internal */\nexport function spacePlane(view: Affine3, box: { x: number; y: number; width: number; height: number }): SpacePlane {\n const hw = box.width / 2, hh = box.height / 2;\n const us = [box.x - hw, box.x + hw, box.x + hw, box.x - hw];\n const vs = [box.y - hh, box.y - hh, box.y + hh, box.y + hh];\n const corners = new Array<number>(12);\n for (let i = 0; i < 4; i++) {\n const u = us[i], v = vs[i];\n corners[i * 3] = view[0] * u + view[1] * v + view[3];\n corners[i * 3 + 1] = view[4] * u + view[5] * v + view[7];\n corners[i * 3 + 2] = view[8] * u + view[9] * v + view[11];\n }\n const nl = Math.hypot(view[2], view[6], view[10]) || 1;\n return {\n corners,\n cx: view[0] * box.x + view[1] * box.y + view[3],\n cy: view[4] * box.x + view[5] * box.y + view[7],\n cz: view[8] * box.x + view[9] * box.y + view[11],\n nx: view[2] / nl,\n ny: view[6] / nl,\n nz: view[10] / nl,\n };\n}\n\n/**\n * Below this `w` a point is at or behind the camera. Not zero: a point just in\n * front of the lens projects so far out that Skia's float32 path maths loses it,\n * and at 1/100 the layer is already magnified a hundredfold — well past the edge\n * of any frame.\n */\nconst NEAR_W = 0.01;\n\n/** Within this fraction of edge-on, a plane projects to a sliver narrower than a pixel. */\nconst EDGE_ON = 1e-3;\n\n/**\n * How `plane` sits relative to the camera: `side` is positive when the camera\n * is in front of it, `edgeOn` when the camera lies (almost) in its plane.\n */\n/** @internal */\nexport function cameraSide(cam: SpaceCamera, plane: SpacePlane): { side: number; edgeOn: boolean } {\n if (cam.perspective > 0) {\n const dx = -plane.cx, dy = -plane.cy, dz = cam.perspective - plane.cz;\n const side = plane.nx * dx + plane.ny * dy + plane.nz * dz;\n return { side, edgeOn: Math.abs(side) <= EDGE_ON * Math.hypot(dx, dy, dz) };\n }\n return { side: plane.nz, edgeOn: Math.abs(plane.nz) <= EDGE_ON };\n}\n\n/** How much of `plane` is in front of the camera. A parallel projection has no near plane. */\n/** @internal */\nexport function nearCoverage(cam: SpaceCamera, plane: SpacePlane): \"all\" | \"some\" | \"none\" {\n if (cam.perspective <= 0) return \"all\";\n let inFront = 0;\n for (let i = 0; i < 4; i++) {\n if (1 - plane.corners[i * 3 + 2] / cam.perspective > NEAR_W) inFront++;\n }\n return inFront === 4 ? \"all\" : inFront === 0 ? \"none\" : \"some\";\n}\n\n/**\n * The part of `box` (local, y-down) that lies in front of the camera under the\n * homography `screen`, as a polygon in the same frame — or `null` when none of\n * it does. `margin` grows the box first, so a shadow or stroke spilling past the\n * node's ink is not cut along its edge.\n */\n/** @internal */\nexport function nearCutPolygon(\n screen: Matrix2D,\n box: { x: number; y: number; width: number; height: number },\n margin: number,\n): Vector2[] | null {\n const g = screen.g ?? 0, h = screen.h ?? 0, i = screen.i ?? 1;\n const hw = box.width / 2 + margin, hh = box.height / 2 + margin;\n const square: Vector2[] = [\n { x: box.x - hw, y: box.y - hh },\n { x: box.x + hw, y: box.y - hh },\n { x: box.x + hw, y: box.y + hh },\n { x: box.x - hw, y: box.y + hh },\n ];\n const w = (p: Vector2) => g * p.x + h * p.y + i - NEAR_W;\n const out: Vector2[] = [];\n for (let k = 0; k < square.length; k++) {\n const a = square[k], b = square[(k + 1) % square.length];\n const wa = w(a), wb = w(b);\n if (wa >= 0) out.push(a);\n if ((wa >= 0) !== (wb >= 0)) {\n const t = wa / (wa - wb);\n out.push({ x: a.x + (b.x - a.x) * t, y: a.y + (b.y - a.y) * t });\n }\n }\n return out.length >= 3 ? out : null;\n}\n\n/** Two points closer than this in view space (px) count as touching. */\nconst SIDE_EPS = 0.01;\n\n/**\n * Which side of `a`'s plane `b` lies on, as seen from the camera:\n * `1` in front (toward the camera), `-1` behind, `0` straddling it or lying in\n * it. `camSide` is `a`'s {@link cameraSide}.\n */\nfunction sideOf(a: SpacePlane, b: SpacePlane, camSide: number): number {\n let front = 0, back = 0;\n for (let i = 0; i < 4; i++) {\n const d = a.nx * (b.corners[i * 3] - a.cx) + a.ny * (b.corners[i * 3 + 1] - a.cy) + a.nz * (b.corners[i * 3 + 2] - a.cz);\n if (d > SIDE_EPS) front++;\n else if (d < -SIDE_EPS) back++;\n }\n if (front === 0 && back === 0) return 0;\n const facing = camSide > 0 ? 1 : -1;\n if (back === 0) return facing;\n if (front === 0) return -facing;\n return 0;\n}\n\n/** Squared distance from the camera: larger is farther. */\nfunction farness(cam: SpaceCamera, p: SpacePlane): number {\n if (cam.perspective > 0) return p.cx * p.cx + p.cy * p.cy + (cam.perspective - p.cz) ** 2;\n return -p.cz;\n}\n\n/**\n * `-1` when `a` must paint before `b`, `1` after, `0` when either order is right\n * — coplanar siblings, which keep their authored order.\n *\n * A plane test first, since it is exact for anything that does not intersect:\n * whichever node lies wholly on the camera's side of the other's plane is in\n * front. Parallel layers — the whole of a parallax stack — always resolve here,\n * and so do coplanar ones, as a tie. Only planes that cut through each other fall\n * back to the distance of their centres, and no painter's order is right for\n * those anyway.\n */\nfunction compareInSpace(cam: SpaceCamera, a: SpacePlane, b: SpacePlane): number {\n const ca = cameraSide(cam, a);\n if (!ca.edgeOn) {\n const s = sideOf(a, b, ca.side);\n if (s !== 0) return s > 0 ? -1 : 1;\n if (isCoplanar(a, b)) return 0;\n }\n const cb = cameraSide(cam, b);\n if (!cb.edgeOn) {\n const s = sideOf(b, a, cb.side);\n if (s !== 0) return s > 0 ? 1 : -1;\n }\n const fa = farness(cam, a), fb = farness(cam, b);\n return fa === fb ? 0 : fa > fb ? -1 : 1;\n}\n\nfunction isCoplanar(a: SpacePlane, b: SpacePlane): boolean {\n for (let i = 0; i < 4; i++) {\n const d = a.nx * (b.corners[i * 3] - a.cx) + a.ny * (b.corners[i * 3 + 1] - a.cy) + a.nz * (b.corners[i * 3 + 2] - a.cz);\n if (Math.abs(d) > SIDE_EPS) return false;\n }\n return true;\n}\n\n/** A stage's camera as its props state it — what a host reads off the root row. */\nexport interface SpaceCameraProps {\n perspective: number;\n orbit: number;\n elevation: number;\n dolly: number;\n lookAt: LookAt;\n zoom: number;\n heading: number;\n}\n\n/** A point in a space, y-up like every scene point, `z` toward the viewer. */\nexport interface SpacePoint {\n x: number;\n y: number;\n z: number;\n}\n\nfunction rootCamera(props: SpaceCameraProps): SpaceCamera {\n return { ...props, viewportX: 0, viewportY: 0 };\n}\n\n/**\n * The space's camera maths for a host drawing over the picture — a gizmo\n * aiming the camera, a guide marking where it looks — so it asks the renderer's\n * own arithmetic rather than keeping a copy that could drift from it. Points are\n * in viewport space: origin at the centre, y-up.\n */\nexport const space3dOps = {\n lerpLookAt,\n\n /** Where scene point `point` lands in the viewport through `camera`, or `null` behind the lens. */\n project(camera: SpaceCameraProps, point: LookAt): Vector2 | null {\n const cam = rootCamera(camera);\n const v = spaceViewMatrix(cam);\n const x = point.x, y = -point.y, z = point.z ?? 0;\n const vx = v[0] * x + v[1] * y + v[2] * z + v[3];\n const vy = v[4] * x + v[5] * y + v[6] * z + v[7];\n const vz = v[8] * x + v[9] * y + v[10] * z + v[11];\n const w = cam.perspective > 0 ? 1 - vz / cam.perspective : 1;\n if (w <= NEAR_W) return null;\n const rad = (-cam.heading * Math.PI) / 180;\n const px = (cam.zoom * vx) / w, py = (cam.zoom * vy) / w;\n return {\n x: Math.cos(rad) * px - Math.sin(rad) * py,\n y: -(Math.sin(rad) * px + Math.cos(rad) * py),\n };\n },\n\n /**\n * The displacement at the camera's focus — in the plane facing it through\n * `lookAt` — that moves the picture there by `vector`. The inverse of a pan:\n * a hand dragging the picture by `vector` moves `lookAt` by minus this.\n */\n focusVector(camera: SpaceCameraProps, vector: Vector2): SpacePoint {\n const cam = rootCamera(camera);\n const rad = (-cam.heading * Math.PI) / 180;\n const k = cam.zoom || 1;\n const cx = vector.x, cy = -vector.y;\n const px = (Math.cos(rad) * cx + Math.sin(rad) * cy) / k;\n const py = (-Math.sin(rad) * cx + Math.cos(rad) * cy) / k;\n // A focus pushed nearer by the dolly draws larger, so it moves less for the same drag.\n const w = cam.perspective > 0 ? 1 - cam.dolly / cam.perspective : 1;\n const v = spaceViewMatrix(cam);\n const ux = px * w, uy = py * w;\n // The view's first two rows are the camera's right and screen-down axes.\n return {\n x: ux * v[0] + uy * v[4],\n y: -(ux * v[1] + uy * v[5]),\n z: ux * v[2] + uy * v[6],\n };\n },\n};\n\n/** Past this many siblings the pairwise order costs more than it is worth, and the centres decide. */\nconst PAIRWISE_LIMIT = 96;\n\n/**\n * The order to paint siblings in, far to near, as indices into `planes`.\n *\n * Pairwise {@link compareInSpace} relations become edges, and a stable\n * topological sort that always takes the lowest ready index keeps `layerOrder`\n * wherever the geometry has no opinion. A cycle — three planes each overlapping\n * the next, which no painter's order can draw — is broken at its farthest node.\n */\n/** @internal */\nexport function spacePaintOrder(cam: SpaceCamera, planes: readonly SpacePlane[]): number[] {\n const n = planes.length;\n if (n > PAIRWISE_LIMIT) {\n return planes\n .map((_, i) => i)\n .sort((a, b) => farness(cam, planes[b]) - farness(cam, planes[a]) || a - b);\n }\n\n const after: number[][] = Array.from({ length: n }, () => []);\n const blockers = new Array<number>(n).fill(0);\n for (let i = 0; i < n; i++) {\n for (let j = i + 1; j < n; j++) {\n const r = compareInSpace(cam, planes[i], planes[j]);\n if (r < 0) { after[i].push(j); blockers[j]++; }\n else if (r > 0) { after[j].push(i); blockers[i]++; }\n }\n }\n\n const order: number[] = [];\n const done = new Array<boolean>(n).fill(false);\n while (order.length < n) {\n let next = -1;\n for (let i = 0; i < n; i++) {\n if (!done[i] && blockers[i] === 0) { next = i; break; }\n }\n if (next === -1) {\n let far = -Infinity;\n for (let i = 0; i < n; i++) {\n if (done[i]) continue;\n const f = farness(cam, planes[i]);\n if (f > far) { far = f; next = i; }\n }\n }\n done[next] = true;\n order.push(next);\n for (const j of after[next]) blockers[j]--;\n }\n return order;\n}\n"]}
1
+ {"version":3,"file":"space3d.js","sourceRoot":"","sources":["../../../src/attributes/layout/space3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAoB1C,0GAA0G;AAC1G,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,EAAU,EAAE,CAAS;IAC1D,MAAM,GAAG,GAAW,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IACvF,IAAI,IAAI,CAAC,CAAC,KAAK,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AAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;gBAAC,IAAI,GAAG,CAAC,CAAC;gBAAC,MAAM;YAAC,CAAC;QAC3D,CAAC;QACD,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;YACd,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC;YACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzB,IAAI,IAAI,CAAC,CAAC,CAAC;oBAAE,SAAS;gBACtB,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;oBAAC,GAAG,GAAG,CAAC,CAAC;oBAAC,IAAI,GAAG,CAAC,CAAC;gBAAC,CAAC;YACvC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QAClB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC;YAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { Matrix2D, Projection3D } from \"./matrix2d\";\nimport type { Vector2 } from \"./vector2\";\n\n/**\n * The maths of a 2.5D space: flat nodes placed in one 3D frame and seen through\n * a single orbiting camera, rather than each projecting through a perspective of\n * its own (see {@link import(\"./matrix2d\").nodeProjectedMatrix}).\n *\n * Everything here works in the space root's canvas frame — x right, y **down**,\n * z toward the viewer, the frame `nodeProjectedMatrix` already tilts nodes in —\n * so a node's transform is the same rotation block with the perspective divide\n * lifted out and applied once, by the camera, to the whole scene.\n */\n\n/** A point a camera is aimed at. `z` is depth, toward the viewer, as a node's `depth` is. */\nexport interface LookAt extends Vector2 {\n z?: number;\n}\n\n/** Lerp a {@link LookAt}, leaving `z` off when neither end has one so a flat camera stays two numbers. */\nexport function lerpLookAt(from: LookAt, to: LookAt, t: number): LookAt {\n const out: LookAt = { x: lerpNumber(from.x, to.x, t), y: lerpNumber(from.y, to.y, t) };\n if (from.z !== undefined || to.z !== undefined) out.z = lerpNumber(from.z ?? 0, to.z ?? 0, t);\n return out;\n}\n\n/**\n * A space root's camera for one frame.\n *\n * `orbit`/`elevation` mean what they mean on `Camera3D` (`render3d/camera.ts`,\n * `resolveCameraPlacement`): orbit 0 is head-on, a positive orbit moves the\n * camera toward +x, a positive elevation lifts it. `perspective` is the camera's\n * distance from `lookAt` at `dolly: 0`, CSS's convention, so the focus plane\n * draws 1:1; `0` is a parallel projection. `zoom` and `heading` apply after the\n * projection, which makes them lens zoom and roll exactly.\n */\n/** @internal */\nexport interface SpaceCamera {\n perspective: number;\n orbit: number;\n elevation: number;\n dolly: number;\n /** Authored y-up, like every other scene point. */\n lookAt: LookAt;\n zoom: number;\n heading: number;\n /** The viewport centre in the root's canvas frame. */\n viewportX: number;\n viewportY: number;\n}\n\n/** Row-major 3×4 affine transform: `[r00 r01 r02 tx, r10 r11 r12 ty, r20 r21 r22 tz]`. */\n/** @internal */\nexport type Affine3 = readonly number[];\n\n/** @internal */\nexport const IDENTITY_AFFINE3: Affine3 = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0];\n\n/** @internal `a · b` — applies `b` first, the same order as `matrix2d`'s `multiply`. */\nexport function multiplyAffine3(a: Affine3, b: Affine3): Affine3 {\n const out = new Array<number>(12);\n for (let r = 0; r < 3; r++) {\n const a0 = a[r * 4], a1 = a[r * 4 + 1], a2 = a[r * 4 + 2], a3 = a[r * 4 + 3];\n out[r * 4] = a0 * b[0] + a1 * b[4] + a2 * b[8];\n out[r * 4 + 1] = a0 * b[1] + a1 * b[5] + a2 * b[9];\n out[r * 4 + 2] = a0 * b[2] + a1 * b[6] + a2 * b[10];\n out[r * 4 + 3] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3;\n }\n return out;\n}\n\n/**\n * A node's transform in its parent's 3D frame — {@link import(\"./matrix2d\").nodeProjectedMatrix}\n * without the perspective, which in a space belongs to the camera:\n *\n * `T(cx + pivotX, cy + pivotY, depth) · Rx · Ry · Rz(rotation + rotationZ) · S(scale) · T(-pivot) · F(flip)`\n *\n * `p.perspective` is ignored. The scale is uniform in all three axes, so a\n * scaled group scales the depth its children sit at too.\n */\n/** @internal */\nexport function nodeSpaceMatrix(\n cx: number, cy: number, rotation: number, scale: number, pivotX: number, pivotY: number,\n p: Projection3D,\n): Affine3 {\n const rad = Math.PI / 180;\n const ca = Math.cos(p.rotationX * rad), sa = Math.sin(p.rotationX * rad);\n const cb = Math.cos(p.rotationY * rad), sb = Math.sin(p.rotationY * rad);\n const cz = (rotation + p.rotationZ) * rad;\n const cc = Math.cos(cz), sc = Math.sin(cz);\n\n const r00 = cb * cc * scale, r01 = -cb * sc * scale, r02 = sb * scale;\n const r10 = (sa * sb * cc + ca * sc) * scale, r11 = (ca * cc - sa * sb * sc) * scale, r12 = -sa * cb * scale;\n const r20 = (sa * sc - ca * sb * cc) * scale, r21 = (ca * sb * sc + sa * cc) * scale, r22 = ca * cb * scale;\n\n // Mirrors negate the two in-plane columns only, about the node's own centre —\n // the same in-place reflection `nodeProjectedMatrix` makes.\n const fx = p.flipHorizontal ? -1 : 1;\n const fy = p.flipVertical ? -1 : 1;\n return [\n r00 * fx, r01 * fy, r02, cx + pivotX - (r00 * pivotX + r01 * pivotY),\n r10 * fx, r11 * fy, r12, cy + pivotY - (r10 * pivotX + r11 * pivotY),\n r20 * fx, r21 * fy, r22, p.depth - (r20 * pivotX + r21 * pivotY),\n ];\n}\n\n/**\n * The camera's view of the root frame: `T(0, 0, dolly) · R(camera)ᵀ · T(-lookAt)`.\n *\n * Built from the camera's own axes rather than from a look-at basis, so there is\n * no pole to clamp: an elevation past 90° keeps turning rather than snapping to\n * an arbitrary roll.\n */\n/** @internal */\nexport function spaceViewMatrix(cam: SpaceCamera): Affine3 {\n const rad = Math.PI / 180;\n const sa = Math.sin(cam.orbit * rad), ca = Math.cos(cam.orbit * rad);\n const se = Math.sin(cam.elevation * rad), ce = Math.cos(cam.elevation * rad);\n // Rows: the camera's right, screen-down and toward-camera axes.\n const r0 = ca, r1 = 0, r2 = -sa;\n const d0 = sa * se, d1 = ce, d2 = ca * se;\n const f0 = sa * ce, f1 = -se, f2 = ca * ce;\n const tx = cam.lookAt.x, ty = -cam.lookAt.y, tz = cam.lookAt.z ?? 0;\n return [\n r0, r1, r2, -(r0 * tx + r1 * ty + r2 * tz),\n d0, d1, d2, -(d0 * tx + d1 * ty + d2 * tz),\n f0, f1, f2, -(f0 * tx + f1 * ty + f2 * tz) + cam.dolly,\n ];\n}\n\n/**\n * Project a view-space transform onto the screen: the homography that maps a\n * node's local `(x, y, 1)` to the root's canvas, perspective divide and the\n * camera's zoom and roll included.\n *\n * At rest — no orbit, elevation, dolly or `lookAt.z`, and a node with no depth\n * or tilt — this is exactly `cameraMatrix · local`, which is what makes turning\n * a space on invisible until something moves in depth.\n */\n/** @internal */\nexport function spaceScreenMatrix(cam: SpaceCamera, view: Affine3): Matrix2D {\n const invP = cam.perspective > 0 ? 1 / cam.perspective : 0;\n const wx = -view[8] * invP;\n const wy = -view[9] * invP;\n const w0 = 1 - view[11] * invP;\n\n const rad = (-cam.heading * Math.PI) / 180;\n const k = cam.zoom;\n const c00 = k * Math.cos(rad), c01 = -k * Math.sin(rad);\n const c10 = k * Math.sin(rad), c11 = k * Math.cos(rad);\n const vx = cam.viewportX, vy = cam.viewportY;\n\n const m: Matrix2D = {\n a: c00 * view[0] + c01 * view[4] + vx * wx,\n c: c00 * view[1] + c01 * view[5] + vx * wy,\n e: c00 * view[3] + c01 * view[7] + vx * w0,\n b: c10 * view[0] + c11 * view[4] + vy * wx,\n d: c10 * view[1] + c11 * view[5] + vy * wy,\n f: c10 * view[3] + c11 * view[7] + vy * w0,\n };\n // A parallel projection stays affine, so it keeps the six-number fast paths.\n if (invP !== 0) {\n m.g = wx;\n m.h = wy;\n m.i = w0;\n }\n return m;\n}\n\n/** A node's box in view space: what sorting, culling and the backface test read. */\n/** @internal */\nexport interface SpacePlane {\n /** The four corners, `x, y, z` each, top-left clockwise. */\n corners: readonly number[];\n cx: number;\n cy: number;\n cz: number;\n /** Unit normal, pointing out of the node's front. */\n nx: number;\n ny: number;\n nz: number;\n}\n\n/**\n * `box` — the node's ink, centred and y-down in its local frame — through `view`.\n *\n * The normal is the transform's z column, which a mirror never touches: a flip\n * reflects the node without turning it around, so it cannot show its back.\n */\n/** @internal */\nexport function spacePlane(view: Affine3, box: { x: number; y: number; width: number; height: number }): SpacePlane {\n const hw = box.width / 2, hh = box.height / 2;\n const us = [box.x - hw, box.x + hw, box.x + hw, box.x - hw];\n const vs = [box.y - hh, box.y - hh, box.y + hh, box.y + hh];\n const corners = new Array<number>(12);\n for (let i = 0; i < 4; i++) {\n const u = us[i], v = vs[i];\n corners[i * 3] = view[0] * u + view[1] * v + view[3];\n corners[i * 3 + 1] = view[4] * u + view[5] * v + view[7];\n corners[i * 3 + 2] = view[8] * u + view[9] * v + view[11];\n }\n const nl = Math.hypot(view[2], view[6], view[10]) || 1;\n return {\n corners,\n cx: view[0] * box.x + view[1] * box.y + view[3],\n cy: view[4] * box.x + view[5] * box.y + view[7],\n cz: view[8] * box.x + view[9] * box.y + view[11],\n nx: view[2] / nl,\n ny: view[6] / nl,\n nz: view[10] / nl,\n };\n}\n\n/**\n * Below this `w` a point is at or behind the camera. Not zero: a point just in\n * front of the lens projects so far out that float32 path maths loses it,\n * and at 1/100 the layer is already magnified a hundredfold — well past the edge\n * of any frame.\n */\nconst NEAR_W = 0.01;\n\n/** Within this fraction of edge-on, a plane projects to a sliver narrower than a pixel. */\nconst EDGE_ON = 1e-3;\n\n/**\n * How `plane` sits relative to the camera: `side` is positive when the camera\n * is in front of it, `edgeOn` when the camera lies (almost) in its plane.\n */\n/** @internal */\nexport function cameraSide(cam: SpaceCamera, plane: SpacePlane): { side: number; edgeOn: boolean } {\n if (cam.perspective > 0) {\n const dx = -plane.cx, dy = -plane.cy, dz = cam.perspective - plane.cz;\n const side = plane.nx * dx + plane.ny * dy + plane.nz * dz;\n return { side, edgeOn: Math.abs(side) <= EDGE_ON * Math.hypot(dx, dy, dz) };\n }\n return { side: plane.nz, edgeOn: Math.abs(plane.nz) <= EDGE_ON };\n}\n\n/** How much of `plane` is in front of the camera. A parallel projection has no near plane. */\n/** @internal */\nexport function nearCoverage(cam: SpaceCamera, plane: SpacePlane): \"all\" | \"some\" | \"none\" {\n if (cam.perspective <= 0) return \"all\";\n let inFront = 0;\n for (let i = 0; i < 4; i++) {\n if (1 - plane.corners[i * 3 + 2] / cam.perspective > NEAR_W) inFront++;\n }\n return inFront === 4 ? \"all\" : inFront === 0 ? \"none\" : \"some\";\n}\n\n/**\n * The part of `box` (local, y-down) that lies in front of the camera under the\n * homography `screen`, as a polygon in the same frame — or `null` when none of\n * it does. `margin` grows the box first, so a shadow or stroke spilling past the\n * node's ink is not cut along its edge.\n */\n/** @internal */\nexport function nearCutPolygon(\n screen: Matrix2D,\n box: { x: number; y: number; width: number; height: number },\n margin: number,\n): Vector2[] | null {\n const g = screen.g ?? 0, h = screen.h ?? 0, i = screen.i ?? 1;\n const hw = box.width / 2 + margin, hh = box.height / 2 + margin;\n const square: Vector2[] = [\n { x: box.x - hw, y: box.y - hh },\n { x: box.x + hw, y: box.y - hh },\n { x: box.x + hw, y: box.y + hh },\n { x: box.x - hw, y: box.y + hh },\n ];\n const w = (p: Vector2) => g * p.x + h * p.y + i - NEAR_W;\n const out: Vector2[] = [];\n for (let k = 0; k < square.length; k++) {\n const a = square[k], b = square[(k + 1) % square.length];\n const wa = w(a), wb = w(b);\n if (wa >= 0) out.push(a);\n if ((wa >= 0) !== (wb >= 0)) {\n const t = wa / (wa - wb);\n out.push({ x: a.x + (b.x - a.x) * t, y: a.y + (b.y - a.y) * t });\n }\n }\n return out.length >= 3 ? out : null;\n}\n\n/** Two points closer than this in view space (px) count as touching. */\nconst SIDE_EPS = 0.01;\n\n/**\n * Which side of `a`'s plane `b` lies on, as seen from the camera:\n * `1` in front (toward the camera), `-1` behind, `0` straddling it or lying in\n * it. `camSide` is `a`'s {@link cameraSide}.\n */\nfunction sideOf(a: SpacePlane, b: SpacePlane, camSide: number): number {\n let front = 0, back = 0;\n for (let i = 0; i < 4; i++) {\n const d = a.nx * (b.corners[i * 3] - a.cx) + a.ny * (b.corners[i * 3 + 1] - a.cy) + a.nz * (b.corners[i * 3 + 2] - a.cz);\n if (d > SIDE_EPS) front++;\n else if (d < -SIDE_EPS) back++;\n }\n if (front === 0 && back === 0) return 0;\n const facing = camSide > 0 ? 1 : -1;\n if (back === 0) return facing;\n if (front === 0) return -facing;\n return 0;\n}\n\n/** Squared distance from the camera: larger is farther. */\nfunction farness(cam: SpaceCamera, p: SpacePlane): number {\n if (cam.perspective > 0) return p.cx * p.cx + p.cy * p.cy + (cam.perspective - p.cz) ** 2;\n return -p.cz;\n}\n\n/**\n * `-1` when `a` must paint before `b`, `1` after, `0` when either order is right\n * — coplanar siblings, which keep their authored order.\n *\n * A plane test first, since it is exact for anything that does not intersect:\n * whichever node lies wholly on the camera's side of the other's plane is in\n * front. Parallel layers — the whole of a parallax stack — always resolve here,\n * and so do coplanar ones, as a tie. Only planes that cut through each other fall\n * back to the distance of their centres, and no painter's order is right for\n * those anyway.\n */\nfunction compareInSpace(cam: SpaceCamera, a: SpacePlane, b: SpacePlane): number {\n const ca = cameraSide(cam, a);\n if (!ca.edgeOn) {\n const s = sideOf(a, b, ca.side);\n if (s !== 0) return s > 0 ? -1 : 1;\n if (isCoplanar(a, b)) return 0;\n }\n const cb = cameraSide(cam, b);\n if (!cb.edgeOn) {\n const s = sideOf(b, a, cb.side);\n if (s !== 0) return s > 0 ? 1 : -1;\n }\n const fa = farness(cam, a), fb = farness(cam, b);\n return fa === fb ? 0 : fa > fb ? -1 : 1;\n}\n\nfunction isCoplanar(a: SpacePlane, b: SpacePlane): boolean {\n for (let i = 0; i < 4; i++) {\n const d = a.nx * (b.corners[i * 3] - a.cx) + a.ny * (b.corners[i * 3 + 1] - a.cy) + a.nz * (b.corners[i * 3 + 2] - a.cz);\n if (Math.abs(d) > SIDE_EPS) return false;\n }\n return true;\n}\n\n/** A stage's camera as its props state it — what a host reads off the root row. */\nexport interface SpaceCameraProps {\n perspective: number;\n orbit: number;\n elevation: number;\n dolly: number;\n lookAt: LookAt;\n zoom: number;\n heading: number;\n}\n\n/** A point in a space, y-up like every scene point, `z` toward the viewer. */\nexport interface SpacePoint {\n x: number;\n y: number;\n z: number;\n}\n\nfunction rootCamera(props: SpaceCameraProps): SpaceCamera {\n return { ...props, viewportX: 0, viewportY: 0 };\n}\n\n/**\n * The space's camera maths for a host drawing over the picture — a gizmo\n * aiming the camera, a guide marking where it looks — so it asks the renderer's\n * own arithmetic rather than keeping a copy that could drift from it. Points are\n * in viewport space: origin at the centre, y-up.\n */\nexport const space3dOps = {\n lerpLookAt,\n\n /** Where scene point `point` lands in the viewport through `camera`, or `null` behind the lens. */\n project(camera: SpaceCameraProps, point: LookAt): Vector2 | null {\n const cam = rootCamera(camera);\n const v = spaceViewMatrix(cam);\n const x = point.x, y = -point.y, z = point.z ?? 0;\n const vx = v[0] * x + v[1] * y + v[2] * z + v[3];\n const vy = v[4] * x + v[5] * y + v[6] * z + v[7];\n const vz = v[8] * x + v[9] * y + v[10] * z + v[11];\n const w = cam.perspective > 0 ? 1 - vz / cam.perspective : 1;\n if (w <= NEAR_W) return null;\n const rad = (-cam.heading * Math.PI) / 180;\n const px = (cam.zoom * vx) / w, py = (cam.zoom * vy) / w;\n return {\n x: Math.cos(rad) * px - Math.sin(rad) * py,\n y: -(Math.sin(rad) * px + Math.cos(rad) * py),\n };\n },\n\n /**\n * The displacement at the camera's focus — in the plane facing it through\n * `lookAt` — that moves the picture there by `vector`. The inverse of a pan:\n * a hand dragging the picture by `vector` moves `lookAt` by minus this.\n */\n focusVector(camera: SpaceCameraProps, vector: Vector2): SpacePoint {\n const cam = rootCamera(camera);\n const rad = (-cam.heading * Math.PI) / 180;\n const k = cam.zoom || 1;\n const cx = vector.x, cy = -vector.y;\n const px = (Math.cos(rad) * cx + Math.sin(rad) * cy) / k;\n const py = (-Math.sin(rad) * cx + Math.cos(rad) * cy) / k;\n // A focus pushed nearer by the dolly draws larger, so it moves less for the same drag.\n const w = cam.perspective > 0 ? 1 - cam.dolly / cam.perspective : 1;\n const v = spaceViewMatrix(cam);\n const ux = px * w, uy = py * w;\n // The view's first two rows are the camera's right and screen-down axes.\n return {\n x: ux * v[0] + uy * v[4],\n y: -(ux * v[1] + uy * v[5]),\n z: ux * v[2] + uy * v[6],\n };\n },\n};\n\n/** Past this many siblings the pairwise order costs more than it is worth, and the centres decide. */\nconst PAIRWISE_LIMIT = 96;\n\n/**\n * The order to paint siblings in, far to near, as indices into `planes`.\n *\n * Pairwise {@link compareInSpace} relations become edges, and a stable\n * topological sort that always takes the lowest ready index keeps `layerOrder`\n * wherever the geometry has no opinion. A cycle — three planes each overlapping\n * the next, which no painter's order can draw — is broken at its farthest node.\n */\n/** @internal */\nexport function spacePaintOrder(cam: SpaceCamera, planes: readonly SpacePlane[]): number[] {\n const n = planes.length;\n if (n > PAIRWISE_LIMIT) {\n return planes\n .map((_, i) => i)\n .sort((a, b) => farness(cam, planes[b]) - farness(cam, planes[a]) || a - b);\n }\n\n const after: number[][] = Array.from({ length: n }, () => []);\n const blockers = new Array<number>(n).fill(0);\n for (let i = 0; i < n; i++) {\n for (let j = i + 1; j < n; j++) {\n const r = compareInSpace(cam, planes[i], planes[j]);\n if (r < 0) { after[i].push(j); blockers[j]++; }\n else if (r > 0) { after[j].push(i); blockers[i]++; }\n }\n }\n\n const order: number[] = [];\n const done = new Array<boolean>(n).fill(false);\n while (order.length < n) {\n let next = -1;\n for (let i = 0; i < n; i++) {\n if (!done[i] && blockers[i] === 0) { next = i; break; }\n }\n if (next === -1) {\n let far = -Infinity;\n for (let i = 0; i < n; i++) {\n if (done[i]) continue;\n const f = farness(cam, planes[i]);\n if (f > far) { far = f; next = i; }\n }\n }\n done[next] = true;\n order.push(next);\n for (const j of after[next]) blockers[j]--;\n }\n return order;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"transform3d.js","sourceRoot":"","sources":["../../../src/attributes/layout/transform3d.ts"],"names":[],"mappings":"AAuCA,0FAA0F;AAC1F,MAAM,iBAAiB,GAAmD;IACtE,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACtC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,CAAC,QAAQ,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,gBAAgB;AAChB,MAAM,UAAU,iBAAiB,CAAC,KAA8B;IAC5D,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,CAAC;IAC9B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO;IACzE,MAAM,MAAM,GAAG,GAA8B,CAAC;IAC9C,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,iBAAiB,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAC9E,CAAC;AACL,CAAC","sourcesContent":["import { Alignment } from \"@/attributes/layout/alignment\";\r\n\r\n/**\r\n * The out-of-plane transform as one bag — the shorthand form of the individual\r\n * `rotationX` / `rotationY` / `depth` / `perspective` / `backfaceVisible` /\r\n * `flipHorizontal` / `flipVertical` / `transformOrigin` props on {@link Node2D}.\r\n *\r\n * Sugar, and only sugar: {@link expandTransform3D} writes each field onto the\r\n * prop it names before anything reads either, the same way `size` becomes\r\n * `width`/`height`. That keeps one storage location per value — so a tween of\r\n * `transform3D.rotationY` and a tween of `rotationY` are the same tween, and a\r\n * scene can mix the two forms without either shadowing the other.\r\n *\r\n * Named `NodeTransform3D` rather than `Transform3D`, which `render3d` already\r\n * uses for the placement of an object in a *real* 3D scene. These are two\r\n * different things and the names had to say so: this one tilts a flat node the\r\n * way a browser tilts a `<div>`, that one puts a mesh in a world with lights in it.\r\n */\r\nexport interface NodeTransform3D {\r\n /** Tilt about the horizontal axis, degrees. Positive tips the top away. */\r\n rotationX?: number;\r\n /** Tilt about the vertical axis, degrees. Positive swings the right edge away. */\r\n rotationY?: number;\r\n /** In-plane rotation belonging to the 3D block, degrees. Separate from the node's own `rotation`. */\r\n rotationZ?: number;\r\n /** Push along the view axis in px (CSS `translateZ`). Inert without `perspective`. */\r\n depth?: number;\r\n /** Viewer distance in px. `0` (default) is a parallel projection — no perspective. */\r\n perspective?: number;\r\n /** Whether the node still paints once it has turned past edge-on. Default `true`. */\r\n backfaceVisible?: boolean;\r\n /** Mirror across the vertical centre line (CSS `scaleX(-1)`). */\r\n flipHorizontal?: boolean;\r\n /** Mirror across the horizontal centre line (CSS `scaleY(-1)`). */\r\n flipVertical?: boolean;\r\n /** The point the whole transform turns about — CSS `transform-origin`. Defaults to the node's `pivot`. */\r\n origin?: Alignment;\r\n}\r\n\r\n/** The prop each {@link NodeTransform3D} field expands to. `origin` is the one rename. */\r\nconst TRANSFORM_3D_KEYS: ReadonlyArray<[keyof NodeTransform3D, string]> = [\r\n [\"rotationX\", \"rotationX\"],\r\n [\"rotationY\", \"rotationY\"],\r\n [\"rotationZ\", \"rotationZ\"],\r\n [\"depth\", \"depth\"],\r\n [\"perspective\", \"perspective\"],\r\n [\"backfaceVisible\", \"backfaceVisible\"],\r\n [\"flipHorizontal\", \"flipHorizontal\"],\r\n [\"flipVertical\", \"flipVertical\"],\r\n [\"origin\", \"transformOrigin\"],\r\n];\r\n\r\n/**\r\n * Expand the `transform3D` shorthand onto the individual props, in place. An\r\n * explicitly-named prop in the same object wins over the bag's field, matching\r\n * `size`-vs-`width` and `padding`-vs-`paddingLeft`; a `transform3D` given as a\r\n * whole-bag callback is left alone, since there is no per-field value to\r\n * distribute. No-op when the key is absent, which is nearly always.\r\n */\r\n/** @internal */\r\nexport function expandTransform3D(props: Record<string, unknown>): void {\r\n const bag = props.transform3D;\r\n if (bag === undefined || bag === null || typeof bag !== \"object\") return;\r\n const source = bag as Record<string, unknown>;\r\n for (const [field, prop] of TRANSFORM_3D_KEYS) {\r\n const value = source[field];\r\n if (value !== undefined && props[prop] === undefined) props[prop] = value;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"transform3d.js","sourceRoot":"","sources":["../../../src/attributes/layout/transform3d.ts"],"names":[],"mappings":"AAuCA,0FAA0F;AAC1F,MAAM,iBAAiB,GAAmD;IACtE,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACtC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,CAAC,QAAQ,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,gBAAgB;AAChB,MAAM,UAAU,iBAAiB,CAAC,KAA8B;IAC5D,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,CAAC;IAC9B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO;IACzE,MAAM,MAAM,GAAG,GAA8B,CAAC;IAC9C,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,iBAAiB,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAC9E,CAAC;AACL,CAAC","sourcesContent":["import { Alignment } from \"@/attributes/layout/alignment\";\n\n/**\n * The out-of-plane transform as one bag — the shorthand form of the individual\n * `rotationX` / `rotationY` / `depth` / `perspective` / `backfaceVisible` /\n * `flipHorizontal` / `flipVertical` / `transformOrigin` props on {@link Node2D}.\n *\n * Sugar, and only sugar: {@link expandTransform3D} writes each field onto the\n * prop it names before anything reads either, the same way `size` becomes\n * `width`/`height`. That keeps one storage location per value — so a tween of\n * `transform3D.rotationY` and a tween of `rotationY` are the same tween, and a\n * scene can mix the two forms without either shadowing the other.\n *\n * Named `NodeTransform3D` rather than `Transform3D`, which `render3d` already\n * uses for the placement of an object in a *real* 3D scene. These are two\n * different things and the names had to say so: this one tilts a flat node the\n * way a browser tilts a `<div>`, that one puts a mesh in a world with lights in it.\n */\nexport interface NodeTransform3D {\n /** Tilt about the horizontal axis, degrees. Positive tips the top away. */\n rotationX?: number;\n /** Tilt about the vertical axis, degrees. Positive swings the right edge away. */\n rotationY?: number;\n /** In-plane rotation belonging to the 3D block, degrees. Separate from the node's own `rotation`. */\n rotationZ?: number;\n /** Push along the view axis in px (CSS `translateZ`). Inert without `perspective`. */\n depth?: number;\n /** Viewer distance in px. `0` (default) is a parallel projection — no perspective. */\n perspective?: number;\n /** Whether the node still paints once it has turned past edge-on. Default `true`. */\n backfaceVisible?: boolean;\n /** Mirror across the vertical centre line (CSS `scaleX(-1)`). */\n flipHorizontal?: boolean;\n /** Mirror across the horizontal centre line (CSS `scaleY(-1)`). */\n flipVertical?: boolean;\n /** The point the whole transform turns about — CSS `transform-origin`. Defaults to the node's `pivot`. */\n origin?: Alignment;\n}\n\n/** The prop each {@link NodeTransform3D} field expands to. `origin` is the one rename. */\nconst TRANSFORM_3D_KEYS: ReadonlyArray<[keyof NodeTransform3D, string]> = [\n [\"rotationX\", \"rotationX\"],\n [\"rotationY\", \"rotationY\"],\n [\"rotationZ\", \"rotationZ\"],\n [\"depth\", \"depth\"],\n [\"perspective\", \"perspective\"],\n [\"backfaceVisible\", \"backfaceVisible\"],\n [\"flipHorizontal\", \"flipHorizontal\"],\n [\"flipVertical\", \"flipVertical\"],\n [\"origin\", \"transformOrigin\"],\n];\n\n/**\n * Expand the `transform3D` shorthand onto the individual props, in place. An\n * explicitly-named prop in the same object wins over the bag's field, matching\n * `size`-vs-`width` and `padding`-vs-`paddingLeft`; a `transform3D` given as a\n * whole-bag callback is left alone, since there is no per-field value to\n * distribute. No-op when the key is absent, which is nearly always.\n */\n/** @internal */\nexport function expandTransform3D(props: Record<string, unknown>): void {\n const bag = props.transform3D;\n if (bag === undefined || bag === null || typeof bag !== \"object\") return;\n const source = bag as Record<string, unknown>;\n for (const [field, prop] of TRANSFORM_3D_KEYS) {\n const value = source[field];\n if (value !== undefined && props[prop] === undefined) props[prop] = value;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vector2.js","sourceRoot":"","sources":["../../../src/attributes/layout/vector2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS1C,gGAAgG;AAChG,MAAM,UAAU,WAAW,CAAC,IAAa,EAAE,EAAW,EAAE,CAAS;IAC7D,OAAO,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,+FAA+F;AAC/F,MAAM,CAAC,MAAM,UAAU,GAAmC;IACtD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;IACzB,IAAI,EAAE,WAAW;CACpB,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\r\nimport type { AttributeOps } from \"@/attributes/shared/operators\";\r\n\r\n/** A 2D point or offset in pixel space. */\r\nexport interface Vector2 {\r\n x: number;\r\n y: number;\r\n}\r\n\r\n/** Linear interpolation between two Vector2 positions. t=0 returns `from`, t=1 returns `to`. */\r\nexport function lerpVector2(from: Vector2, to: Vector2, t: number): Vector2 {\r\n return { x: lerpNumber(from.x, to.x, t), y: lerpNumber(from.y, to.y, t) };\r\n}\r\n\r\n/** The `Vector2` attribute's op set: resolve is the identity (already a loose number pair). */\r\nexport const vector2Ops: AttributeOps<Vector2, Vector2> = {\r\n resolve: (value) => value,\r\n lerp: lerpVector2,\r\n};\r\n"]}
1
+ {"version":3,"file":"vector2.js","sourceRoot":"","sources":["../../../src/attributes/layout/vector2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS1C,gGAAgG;AAChG,MAAM,UAAU,WAAW,CAAC,IAAa,EAAE,EAAW,EAAE,CAAS;IAC7D,OAAO,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,+FAA+F;AAC/F,MAAM,CAAC,MAAM,UAAU,GAAmC;IACtD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;IACzB,IAAI,EAAE,WAAW;CACpB,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { AttributeOps } from \"@/attributes/shared/operators\";\n\n/** A 2D point or offset in pixel space. */\nexport interface Vector2 {\n x: number;\n y: number;\n}\n\n/** Linear interpolation between two Vector2 positions. t=0 returns `from`, t=1 returns `to`. */\nexport function lerpVector2(from: Vector2, to: Vector2, t: number): Vector2 {\n return { x: lerpNumber(from.x, to.x, t), y: lerpNumber(from.y, to.y, t) };\n}\n\n/** The `Vector2` attribute's op set: resolve is the identity (already a loose number pair). */\nexport const vector2Ops: AttributeOps<Vector2, Vector2> = {\n resolve: (value) => value,\n lerp: lerpVector2,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"world-transform.js","sourceRoot":"","sources":["../../../src/attributes/layout/world-transform.ts"],"names":[],"mappings":"","sourcesContent":["import { Vector2 } from \"./vector2\";\r\n\r\n/**\r\n * A node's resolved transform in global (world / scene-root) space. Unlike the\r\n * per-node `x`/`y` and anchor getters — which are relative to the node's parent\r\n * — every field here is folded through the full ancestor chain, so two nodes\r\n * under different parents can be compared or aligned directly.\r\n *\r\n * Positions use the same y-up convention as `x`/`y` (positive y is up). Read\r\n * inside a reactive callback (`x: () => other().global.topRight.x`) they track\r\n * changes to this node's *and* every ancestor's layout/transform.\r\n */\r\n/** @internal */\r\nexport interface WorldTransform {\r\n /** World position of the node's center (its `x`/`y` origin). */\r\n readonly x: number;\r\n readonly y: number;\r\n readonly center: Vector2;\r\n readonly topLeft: Vector2;\r\n readonly topRight: Vector2;\r\n readonly bottomLeft: Vector2;\r\n readonly bottomRight: Vector2;\r\n readonly topCenter: Vector2;\r\n readonly bottomCenter: Vector2;\r\n readonly centerLeft: Vector2;\r\n readonly centerRight: Vector2;\r\n /** Sum of this node's and all ancestors' rotations, in degrees clockwise. */\r\n readonly rotation: number;\r\n /** Product of this node's and all ancestors' scale factors. */\r\n readonly scale: number;\r\n /**\r\n * Product of this node's and all ancestors' opacities, in `[0, 1]` — the\r\n * effective alpha the node renders at. Matches the renderer's pass-through\r\n * fold: an ancestor at half opacity halves everything beneath it.\r\n */\r\n readonly opacity: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"world-transform.js","sourceRoot":"","sources":["../../../src/attributes/layout/world-transform.ts"],"names":[],"mappings":"","sourcesContent":["import { Vector2 } from \"./vector2\";\n\n/**\n * A node's resolved transform in global (world / scene-root) space. Unlike the\n * per-node `x`/`y` and anchor getters — which are relative to the node's parent\n * — every field here is folded through the full ancestor chain, so two nodes\n * under different parents can be compared or aligned directly.\n *\n * Positions use the same y-up convention as `x`/`y` (positive y is up). Read\n * inside a reactive callback (`x: () => other().global.topRight.x`) they track\n * changes to this node's *and* every ancestor's layout/transform.\n */\n/** @internal */\nexport interface WorldTransform {\n /** World position of the node's center (its `x`/`y` origin). */\n readonly x: number;\n readonly y: number;\n readonly center: Vector2;\n readonly topLeft: Vector2;\n readonly topRight: Vector2;\n readonly bottomLeft: Vector2;\n readonly bottomRight: Vector2;\n readonly topCenter: Vector2;\n readonly bottomCenter: Vector2;\n readonly centerLeft: Vector2;\n readonly centerRight: Vector2;\n /** Sum of this node's and all ancestors' rotations, in degrees clockwise. */\n readonly rotation: number;\n /** Product of this node's and all ancestors' scale factors. */\n readonly scale: number;\n /**\n * Product of this node's and all ancestors' opacities, in `[0, 1]` — the\n * effective alpha the node renders at. Matches the renderer's pass-through\n * fold: an ancestor at half opacity halves everything beneath it.\n */\n readonly opacity: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/attributes/mask/boolean.ts"],"names":[],"mappings":"","sourcesContent":["// Figma-style boolean operations between child paths.\r\n// `union` — combine all child paths\r\n// `subtract` — first child minus the rest\r\n// `intersect` — area covered by every child\r\n// `exclude` — symmetric difference (XOR)\r\nexport type BooleanOperation = \"union\" | \"subtract\" | \"intersect\" | \"exclude\";"]}
1
+ {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/attributes/mask/boolean.ts"],"names":[],"mappings":"","sourcesContent":["// Figma-style boolean operations between child paths.\n// `union` — combine all child paths\n// `subtract` — first child minus the rest\n// `intersect` — area covered by every child\n// `exclude` — symmetric difference (XOR)\nexport type BooleanOperation = \"union\" | \"subtract\" | \"intersect\" | \"exclude\";"]}
@@ -1 +1 @@
1
- {"version":3,"file":"mask.js","sourceRoot":"","sources":["../../../src/attributes/mask/mask.ts"],"names":[],"mappings":"","sourcesContent":["// Figma-style mask modes for a MaskGroup.\r\n// `alpha` — use mask's rendered alpha (default)\r\n// `vector` — fast path-only clip (uses canvas clipPath under the hood)\r\n// `luminance` — use mask's luminance as alpha\r\nexport type MaskMode = \"alpha\" | \"vector\" | \"luminance\";\r\n\r\n// Which paint layers the mask is applied to. Unlisted layers render above the\r\n// masked composite (as if drawn after endMask). Omit to mask all layers (default).\r\n// Example: apply: 'fill' — fills are masked, strokes/shadows render on top.\r\nexport type MaskApplyLayer = \"fill\" | \"stroke\";\r\nexport type MaskApply = MaskApplyLayer | MaskApplyLayer[];\r\n\r\nexport interface MaskOptions {\r\n mode?: MaskMode;\r\n // When true, content shows where the mask is NOT (subtract / inverse mask).\r\n inverted?: boolean;\r\n // Which paint layers the mask applies to (default: all).\r\n apply?: MaskApply;\r\n}"]}
1
+ {"version":3,"file":"mask.js","sourceRoot":"","sources":["../../../src/attributes/mask/mask.ts"],"names":[],"mappings":"","sourcesContent":["// Figma-style mask modes for a MaskGroup.\n// `alpha` — use mask's rendered alpha (default)\n// `vector` — fast path-only clip (uses canvas clipPath under the hood)\n// `luminance` — use mask's luminance as alpha\nexport type MaskMode = \"alpha\" | \"vector\" | \"luminance\";\n\n// Which paint layers the mask is applied to. Unlisted layers render above the\n// masked composite (as if drawn after endMask). Omit to mask all layers (default).\n// Example: apply: 'fill' — fills are masked, strokes/shadows render on top.\nexport type MaskApplyLayer = \"fill\" | \"stroke\";\nexport type MaskApply = MaskApplyLayer | MaskApplyLayer[];\n\nexport interface MaskOptions {\n mode?: MaskMode;\n // When true, content shows where the mask is NOT (subtract / inverse mask).\n inverted?: boolean;\n // Which paint layers the mask applies to (default: all).\n apply?: MaskApply;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../../src/attributes/properties/decorator.ts"],"names":[],"mappings":"AA8DA,kEAAkE;AAClE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC5C,OAAO,WAAW,CAAe,QAAQ,EAAE,aAAa,CAAC,CAAC;AAC9D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAA4B,QAAgB,EAAE,MAAc;IACnF,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,KAAK,IAAI,KAAK,KAAK,MAAM,CAAC,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrB,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,MAAM,EAAE,GAAG,IAAI,GAAG,EAAkB,CAAC;IACrC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC;YAAE,SAAS;QAC/D,KAAK,MAAM,CAAC,IAAK,CAAyB,CAAC,MAAM,CAAC,EAAE,CAAC;YACjD,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;gBAClB,EAAE,CAAC,GAAG,CAAC,C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ACzE,iEAAiE;QACjE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC;YAC9D,MAAc,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QACxC,CAAC;QACD,MAAM,IAAI,GAAoB,MAAc,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { TweenFn } from \"@/props/host\";\r\n\r\nexport interface PropOptions<Ext, Int> {\r\n /** Lerp the *internal* (post-mapper) value during `to()`. Each step is stored as it returns, not mapped again, so a prop that must hold a range under an overshooting ease clamps here too. */\r\n tween?: TweenFn<Int>;\r\n /** Converts the external input into the internal stored value. Receives the previous internal value as the second arg when available. */\r\n mapper?: (ext: Ext, prev?: Int) => Int;\r\n}\r\n\r\n\r\nexport interface PropertyMeta {\r\n key: string;\r\n default?: unknown;\r\n options?: PropOptions<any, any>;\r\n /** How a host edits this prop — see {@link PropertyEditor}. */\r\n editor?: PropertyEditor;\r\n /** @deprecated Nothing sets it: the engine withdraws no property. Kept so a host that tests it still compiles. */\r\n withdrawn?: boolean;\r\n}\r\n\r\n/**\r\n * What a host needs to draw a control for a property.\r\n *\r\n * Declared **on the property**, because that is the thing it edits. A node type\r\n * used to describe its controls in a separate list — a `fields` array beside the\r\n * class, or a manifest beside the package — and a list of props next to a class\r\n * of props is the shape that drifts: rename one and nothing says the other is\r\n * now describing something that no longer exists.\r\n *\r\n * Nothing here is read while rendering. A frame is identical whether a prop\r\n * declares a range or not; this exists so an editor has one place to ask.\r\n */\r\nexport interface PropertyEditor {\r\n /**\r\n * The control to draw. Inferred when absent — a typed entry knows its\r\n * own (`Types.color` is a colour), and a plain `property` reads it off\r\n * the default's type.\r\n */\r\n kind?: string;\r\n /** Bounds and granularity for a numeric control. */\r\n min?: number;\r\n max?: number;\r\n step?: number;\r\n /** What the number means, for a host that labels it — `\"°\"`, `\"s\"`, `\"×\"`. */\r\n unit?: string;\r\n /** The choices, for an enum. */\r\n options?: readonly string[];\r\n /** Whether a document may tween it. Defaults to true. */\r\n animatable?: boolean;\r\n /**\r\n * The controls *inside* an object-valued prop.\r\n *\r\n * An axis config or a theme is one property holding several editable values,\r\n * and a host draws them as a group. Declaring them here keeps them attached\r\n * to the prop they belong to rather than flattened into a list that has to\r\n * name its own parent.\r\n */\r\n properties?: Record<string, PropertyEditor>;\r\n /** Whatever a control needs that this vocabulary does not name. */\r\n [option: string]: unknown;\r\n}\r\n\r\n/** Symbol used to store property metadata on class prototypes. */\r\nexport const PROPERTY_META = Symbol(\"propertyMeta\");\r\n\r\n/**\r\n * Every `property` on an instance's class, inherited included, ordered base →\r\n * subclass so `initProps` applies them in declaration order. A subclass that\r\n * redeclares a key replaces the inherited declaration whole — default, mapper,\r\n * tween and editor — at the position the base gave it.\r\n */\r\nexport function getPropertyMeta(instance: object): PropertyMeta[] {\r\n return mostDerived<PropertyMeta>(instance, PROPERTY_META);\r\n}\r\n\r\n/**\r\n * The per-key declarations stored under `symbol` along `instance`'s prototype\r\n * chain: base first, one entry per key, the most-derived declaration of each.\r\n */\r\nexport function mostDerived<M extends { key: string }>(instance: object, symbol: symbol): M[] {\r\n const chain: object[] = [];\r\n let proto = Object.getPrototypeOf(instance);\r\n while (proto && proto !== Object.prototype) {\r\n chain.unshift(proto);\r\n proto = Object.getPrototypeOf(proto);\r\n }\r\n const result: M[] = [];\r\n const at = new Map<string, number>();\r\n for (const p of chain) {\r\n if (!Object.prototype.hasOwnProperty.call(p, symbol)) continue;\r\n for (const m of (p as Record<symbol, M[]>)[symbol]) {\r\n const i = at.get(m.key);\r\n if (i === undefined) {\r\n at.set(m.key, result.length);\r\n result.push(m);\r\n } else {\r\n result[i] = m;\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\n\r\n/**\r\n * A registration for one member of a node class: what `property(...)` and\r\n * `command(...)` return, applied to the class's prototype under the member's\r\n * key by {@link declareMembers}.\r\n */\r\nexport type MemberRegistration = (target: object, key: string) => void;\r\n\r\n/**\r\n * Registers properties and commands on a node class, in the order given.\r\n *\r\n * Core's own base classes (`Node`, `Node2D`, `Node3D`, …) declare their props\r\n * as `declare` fields and register them here, right after the class body.\r\n * Order is meaningful: {@link getPropertyMeta} lists properties in\r\n * registration order, which is the order `Registry.describe` hands a host's\r\n * inspector, so a new entry goes where it should appear.\r\n *\r\n * @example\r\n * ```ts\r\n * class Dial extends Node2D<DialProps> {\r\n * declare level: number;\r\n * turn(args: CommandArgs<{ by: number }>) { … }\r\n * }\r\n * declareMembers(Dial, {\r\n * level: property({ default: 0 }),\r\n * turn: command({ args: [\"by\"] }),\r\n * });\r\n * ```\r\n *\r\n * Node types outside core are components (`component2d`), which do this for\r\n * their `props` and `commands` themselves.\r\n */\r\nexport function declareMembers<C extends abstract new (...args: never[]) => object>(\r\n ctor: C,\r\n members: { [K in keyof InstanceType<C> & string]?: MemberRegistration },\r\n): void {\r\n for (const [key, register] of Object.entries(members) as [string, MemberRegistration][]) {\r\n register(ctor.prototype as object, key);\r\n }\r\n}\r\n\r\n/**\r\n * Declares a property on a `Node` subclass: applied to the prototype under the\r\n * property's key, directly or through {@link declareMembers}. Redeclaring an\r\n * inherited key overrides it; see {@link getPropertyMeta}.\r\n *\r\n * @example\r\n * ```ts\r\n * declareMembers(Glow, {\r\n * radius: property({ default: 0 }),\r\n * fill: property({ mapper: fillOps.resolve, tween: fillOps.lerp }),\r\n * });\r\n * ```\r\n *\r\n * The `default` value is used when the corresponding key is absent from the\r\n * constructor `props` object. The `mapper` / `tween` options are forwarded\r\n * directly to `applyProp()`.\r\n */\r\nexport function property<Ext = any, Int = Ext>(opts?: {\r\n default?: Ext;\r\n mapper?: (ext: Ext, prev?: Int) => Int;\r\n tween?: TweenFn<Int>;\r\n} & PropertyEditor) {\r\n return function (target: object, propertyKey: string | symbol): void {\r\n const key = propertyKey as string;\r\n // `default`, `mapper` and `tween` drive the prop slot; everything else is\r\n // the editor's, and is carried rather than interpreted.\r\n const { default: fallback, mapper, tween, ...editor } = opts ?? {};\r\n const meta: PropertyMeta = {\r\n key,\r\n default: fallback,\r\n options: (mapper != null || tween != null)\r\n ? { mapper: mapper as ((ext: any) => any) | undefined, tween: tween as TweenFn<any> | undefined }\r\n : undefined,\r\n ...(Object.keys(editor).length > 0 ? { editor: editor as PropertyEditor } : {}),\r\n };\r\n\r\n // Store metadata on the class prototype (own property so getPropertyMeta\r\n // can distinguish each class's own entries from inherited ones).\r\n if (!Object.prototype.hasOwnProperty.call(target, PROPERTY_META)) {\r\n (target as any)[PROPERTY_META] = [];\r\n }\r\n const list: PropertyMeta[] = (target as any)[PROPERTY_META];\r\n if (!list.some(m => m.key === key)) {\r\n list.push(meta);\r\n }\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../../src/attributes/properties/decorator.ts"],"names":[],"mappings":"AA8DA,kEAAkE;AAClE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC5C,OAAO,WAAW,CAAe,QAAQ,EAAE,aAAa,CAAC,CAAC;AAC9D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAA4B,QAAgB,EAAE,MAAc;IACnF,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,KAAK,IAAI,KAAK,KAAK,MAAM,CAAC,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrB,KAAK,GAAG,MAAM,CA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AAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;QACnE,MAAM,IAAI,GAAiB;YACvB,GAAG;YACH,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC;gBACtC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAyC,EAAE,KAAK,EAAE,KAAiC,EAAE;gBACjG,CAAC,CAAC,SAAS;YACf,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAwB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAClF,CAAC;QAEF,yEAAyE;QACzE,iEAAiE;QACjE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC;YAC9D,MAAc,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QACxC,CAAC;QACD,MAAM,IAAI,GAAoB,MAAc,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { TweenFn } from \"@/props/host\";\n\nexport interface PropOptions<Ext, Int> {\n /** Lerp the *internal* (post-mapper) value during `to()`. Each step is stored as it returns, not mapped again, so a prop that must hold a range under an overshooting ease clamps here too. */\n tween?: TweenFn<Int>;\n /** Converts the external input into the internal stored value. Receives the previous internal value as the second arg when available. */\n mapper?: (ext: Ext, prev?: Int) => Int;\n}\n\n\nexport interface PropertyMeta {\n key: string;\n default?: unknown;\n options?: PropOptions<any, any>;\n /** How a host edits this prop — see {@link PropertyEditor}. */\n editor?: PropertyEditor;\n /** @deprecated Nothing sets it: the engine withdraws no property. Kept so a host that tests it still compiles. */\n withdrawn?: boolean;\n}\n\n/**\n * What a host needs to draw a control for a property.\n *\n * Declared **on the property**, because that is the thing it edits. A node type\n * used to describe its controls in a separate list — a `fields` array beside the\n * class, or a manifest beside the package — and a list of props next to a class\n * of props is the shape that drifts: rename one and nothing says the other is\n * now describing something that no longer exists.\n *\n * Nothing here is read while rendering. A frame is identical whether a prop\n * declares a range or not; this exists so an editor has one place to ask.\n */\nexport interface PropertyEditor {\n /**\n * The control to draw. Inferred when absent — a typed entry knows its\n * own (`Types.color` is a colour), and a plain `property` reads it off\n * the default's type.\n */\n kind?: string;\n /** Bounds and granularity for a numeric control. */\n min?: number;\n max?: number;\n step?: number;\n /** What the number means, for a host that labels it — `\"°\"`, `\"s\"`, `\"×\"`. */\n unit?: string;\n /** The choices, for an enum. */\n options?: readonly string[];\n /** Whether a document may tween it. Defaults to true. */\n animatable?: boolean;\n /**\n * The controls *inside* an object-valued prop.\n *\n * An axis config or a theme is one property holding several editable values,\n * and a host draws them as a group. Declaring them here keeps them attached\n * to the prop they belong to rather than flattened into a list that has to\n * name its own parent.\n */\n properties?: Record<string, PropertyEditor>;\n /** Whatever a control needs that this vocabulary does not name. */\n [option: string]: unknown;\n}\n\n/** Symbol used to store property metadata on class prototypes. */\nexport const PROPERTY_META = Symbol(\"propertyMeta\");\n\n/**\n * Every `property` on an instance's class, inherited included, ordered base →\n * subclass so `initProps` applies them in declaration order. A subclass that\n * redeclares a key replaces the inherited declaration whole — default, mapper,\n * tween and editor — at the position the base gave it.\n */\nexport function getPropertyMeta(instance: object): PropertyMeta[] {\n return mostDerived<PropertyMeta>(instance, PROPERTY_META);\n}\n\n/**\n * The per-key declarations stored under `symbol` along `instance`'s prototype\n * chain: base first, one entry per key, the most-derived declaration of each.\n */\nexport function mostDerived<M extends { key: string }>(instance: object, symbol: symbol): M[] {\n const chain: object[] = [];\n let proto = Object.getPrototypeOf(instance);\n while (proto && proto !== Object.prototype) {\n chain.unshift(proto);\n proto = Object.getPrototypeOf(proto);\n }\n const result: M[] = [];\n const at = new Map<string, number>();\n for (const p of chain) {\n if (!Object.prototype.hasOwnProperty.call(p, symbol)) continue;\n for (const m of (p as Record<symbol, M[]>)[symbol]) {\n const i = at.get(m.key);\n if (i === undefined) {\n at.set(m.key, result.length);\n result.push(m);\n } else {\n result[i] = m;\n }\n }\n }\n return result;\n}\n\n/**\n * A registration for one member of a node class: what `property(...)` and\n * `command(...)` return, applied to the class's prototype under the member's\n * key by {@link declareMembers}.\n */\nexport type MemberRegistration = (target: object, key: string) => void;\n\n/**\n * Registers properties and commands on a node class, in the order given.\n *\n * Core's own base classes (`Node`, `Node2D`, `Node3D`, …) declare their props\n * as `declare` fields and register them here, right after the class body.\n * Order is meaningful: {@link getPropertyMeta} lists properties in\n * registration order, which is the order `Registry.describe` hands a host's\n * inspector, so a new entry goes where it should appear.\n *\n * @example\n * ```ts\n * class Dial extends Node2D<DialProps> {\n * declare level: number;\n * turn(args: CommandArgs<{ by: number }>) { … }\n * }\n * declareMembers(Dial, {\n * level: property({ default: 0 }),\n * turn: command({ args: [\"by\"] }),\n * });\n * ```\n *\n * Node types outside core are components (`component2d`), which do this for\n * their `props` and `commands` themselves.\n */\nexport function declareMembers<C extends abstract new (...args: never[]) => object>(\n ctor: C,\n members: { [K in keyof InstanceType<C> & string]?: MemberRegistration },\n): void {\n for (const [key, register] of Object.entries(members) as [string, MemberRegistration][]) {\n register(ctor.prototype as object, key);\n }\n}\n\n/**\n * Declares a property on a `Node` subclass: applied to the prototype under the\n * property's key, directly or through {@link declareMembers}. Redeclaring an\n * inherited key overrides it; see {@link getPropertyMeta}.\n *\n * @example\n * ```ts\n * declareMembers(Glow, {\n * radius: property({ default: 0 }),\n * fill: property({ mapper: fillOps.resolve, tween: fillOps.lerp }),\n * });\n * ```\n *\n * The `default` value is used when the corresponding key is absent from the\n * constructor `props` object. The `mapper` / `tween` options are forwarded\n * directly to `applyProp()`.\n */\nexport function property<Ext = any, Int = Ext>(opts?: {\n default?: Ext;\n mapper?: (ext: Ext, prev?: Int) => Int;\n tween?: TweenFn<Int>;\n} & PropertyEditor) {\n return function (target: object, propertyKey: string | symbol): void {\n const key = propertyKey as string;\n // `default`, `mapper` and `tween` drive the prop slot; everything else is\n // the editor's, and is carried rather than interpreted.\n const { default: fallback, mapper, tween, ...editor } = opts ?? {};\n const meta: PropertyMeta = {\n key,\n default: fallback,\n options: (mapper != null || tween != null)\n ? { mapper: mapper as ((ext: any) => any) | undefined, tween: tween as TweenFn<any> | undefined }\n : undefined,\n ...(Object.keys(editor).length > 0 ? { editor: editor as PropertyEditor } : {}),\n };\n\n // Store metadata on the class prototype (own property so getPropertyMeta\n // can distinguish each class's own entries from inherited ones).\n if (!Object.prototype.hasOwnProperty.call(target, PROPERTY_META)) {\n (target as any)[PROPERTY_META] = [];\n }\n const list: PropertyMeta[] = (target as any)[PROPERTY_META];\n if (!list.some(m => m.key === key)) {\n list.push(meta);\n }\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/attributes/properties/inputs.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\r\n * Reactive-prop input shapes. A `property`-backed field accepts either a plain\r\n * value or a `() => value` callback that binds the prop to a derived value\r\n * (re-evaluated whenever its dependencies change).\r\n */\r\n\r\n/** @internal A single prop input: a constant value or a reactive callback producing it. */\r\nexport type PropInput<T> = T | (() => T);\r\n\r\n/** @internal Maps every key of a props object to its {@link PropInput} form. */\r\nexport type PropInputs<P> = {\r\n [K in keyof P]?: P[K] | (() => P[K]);\r\n};\r\n"]}
1
+ {"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/attributes/properties/inputs.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * Reactive-prop input shapes. A `property`-backed field accepts either a plain\n * value or a `() => value` callback that binds the prop to a derived value\n * (re-evaluated whenever its dependencies change).\n */\n\n/** @internal A single prop input: a constant value or a reactive callback producing it. */\nexport type PropInput<T> = T | (() => T);\n\n/** @internal Maps every key of a props object to its {@link PropInput} form. */\nexport type PropInputs<P> = {\n [K in keyof P]?: P[K] | (() => P[K]);\n};\n"]}
@@ -7,9 +7,9 @@ import { Insets, InsetsResolved } from "../../attributes/layout/insets.js";
7
7
  import { Alignment } from "../../attributes/layout/alignment.js";
8
8
  import { Vector2 } from "../../attributes/layout/vector2.js";
9
9
  import type { FlowMode, FlowResolved } from "../../layout/types.js";
10
- import { type AudioFilter } from "../../attributes/audio/filters/chain.js";
11
- import { AudioFilterItem } from "../../attributes/audio/filters/union.js";
12
- import { type Param } from "../../attributes/audio/filters/curve.js";
10
+ import { type AudioEffectsInput } from "../../attributes/audio/effects/chain.js";
11
+ import { AudioEffect } from "../../attributes/audio/effects/union.js";
12
+ import { type Param } from "../../attributes/audio/ramp.js";
13
13
  import { type Quaternion } from "../../render3d/vector3.js";
14
14
  /**
15
15
  * Attribute-typed variants of `property`, for the props the tree bases declare
@@ -73,19 +73,19 @@ export declare const quaternionProperty: (opts?: (AttributePropOptions<Quaternio
73
73
  *
74
74
  * `Param`, not `number`, because an `AudioRequest` is a schedule record built
75
75
  * once during precomp: a per-frame prop write would be read on whichever frame
76
- * happened to create the request and then never again. A `Curve` *is* the
77
- * automation lane, which is why the tween interpolates between whole curves.
76
+ * happened to create the request and then never again. A `Ramp` *is* the
77
+ * automation lane, which is why the tween interpolates between whole ramps.
78
78
  */
79
79
  export declare const audioParamProperty: (opts?: (AttributePropOptions<Param, Param> & {
80
80
  kind?: string;
81
81
  }) | undefined) => (target: object, propertyKey: string | symbol) => void;
82
82
  /**
83
- * An audio filter chain — the `filters` prop's op set.
83
+ * An audio effect chain — the `effects` prop's op set.
84
84
  *
85
85
  * Without it a chain is an object-valued prop, and `Node._prepareStep` drops
86
86
  * those silently: the tween would run its duration and write nothing.
87
87
  */
88
- export declare const audioFiltersProperty: (opts?: (AttributePropOptions<AudioFilter, AudioFilterItem[]> & {
88
+ export declare const audioEffectsProperty: (opts?: (AttributePropOptions<AudioEffectsInput, AudioEffect[]> & {
89
89
  kind?: string;
90
90
  }) | undefined) => (target: object, propertyKey: string | symbol) => void;
91
91
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"typed.d.ts","sourceRoot":"","sources":["../../../src/attributes/properties/typed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAgB,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,KAAK,KAAK,EAAiB,MAAM,kCAAkC,CAAC;AAE7E,OAAO,EAEH,KAAK,UAAU,EAClB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;GAWG;AACH,UAAU,oBAAoB,CAAC,GAAG,EAAE,GAAG;IACnC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,oEAAoE;IACpE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG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O,MAAM,oBAAoB;WAlE4B,MAAM;yEAoElE,CAAC"}
@@ -4,8 +4,8 @@ import { effectsOps } from "../../attributes/shape/effects/chain.js";
4
4
  import { insetsOps } from "../../attributes/layout/insets.js";
5
5
  import { alignmentOps } from "../../attributes/layout/alignment.js";
6
6
  import { flowOps } from "../../layout/ops.js";
7
- import { audioFiltersOps } from "../../attributes/audio/filters/registry.js";
8
- import { audioParamOps } from "../../attributes/audio/filters/curve.js";
7
+ import { audioEffectsOps } from "../../attributes/audio/effects/registry.js";
8
+ import { audioParamOps } from "../../attributes/audio/ramp.js";
9
9
  import { quaternionOps, lerpOptionalVector3, resolveOptionalVector3, } from "../../render3d/vector3.js";
10
10
  /**
11
11
  * Build one attribute-typed `property` from its canonical {@link AttributeOps}.
@@ -61,15 +61,15 @@ export const quaternionProperty = attributeProperty(() => ({ x: 0, y: 0, z: 0, w
61
61
  *
62
62
  * `Param`, not `number`, because an `AudioRequest` is a schedule record built
63
63
  * once during precomp: a per-frame prop write would be read on whichever frame
64
- * happened to create the request and then never again. A `Curve` *is* the
65
- * automation lane, which is why the tween interpolates between whole curves.
64
+ * happened to create the request and then never again. A `Ramp` *is* the
65
+ * automation lane, which is why the tween interpolates between whole ramps.
66
66
  */
67
67
  export const audioParamProperty = attributeProperty(() => 0, undefined, audioParamOps.lerp, "audioParam");
68
68
  /**
69
- * An audio filter chain — the `filters` prop's op set.
69
+ * An audio effect chain — the `effects` prop's op set.
70
70
  *
71
71
  * Without it a chain is an object-valued prop, and `Node._prepareStep` drops
72
72
  * those silently: the tween would run its duration and write nothing.
73
73
  */
74
- export const audioFiltersProperty = attributeProperty(() => [], audioFiltersOps.resolve, audioFiltersOps.lerp, "audioFilters");
74
+ export const audioEffectsProperty = attributeProperty(() => [], audioEffectsOps.resolve, audioEffectsOps.lerp, "audioEffects");
75
75
  //# sourceMappingURL=typed.js.map