@motionscript/core 0.1.0 → 0.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1062) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/assets/asset-index.d.ts +1 -8
  3. package/dist/assets/asset-index.d.ts.map +1 -1
  4. package/dist/assets/asset-index.js +1 -8
  5. package/dist/assets/asset-index.js.map +1 -1
  6. package/dist/assets/catalog.d.ts +10 -72
  7. package/dist/assets/catalog.d.ts.map +1 -1
  8. package/dist/assets/catalog.js +3 -29
  9. package/dist/assets/catalog.js.map +1 -1
  10. package/dist/assets/errors.d.ts +8 -20
  11. package/dist/assets/errors.d.ts.map +1 -1
  12. package/dist/assets/errors.js +8 -20
  13. package/dist/assets/errors.js.map +1 -1
  14. package/dist/assets/index.d.ts.map +1 -1
  15. package/dist/assets/index.js.map +1 -1
  16. package/dist/assets/manager.d.ts +9 -51
  17. package/dist/assets/manager.d.ts.map +1 -1
  18. package/dist/assets/manager.js +13 -78
  19. package/dist/assets/manager.js.map +1 -1
  20. package/dist/assets/record.d.ts +2 -18
  21. package/dist/assets/record.d.ts.map +1 -1
  22. package/dist/assets/record.js.map +1 -1
  23. package/dist/assets/scope.d.ts +3 -18
  24. package/dist/assets/scope.d.ts.map +1 -1
  25. package/dist/assets/scope.js +2 -11
  26. package/dist/assets/scope.js.map +1 -1
  27. package/dist/attributes/audio/effects/chain.d.ts +2 -12
  28. package/dist/attributes/audio/effects/chain.d.ts.map +1 -1
  29. package/dist/attributes/audio/effects/chain.js +1 -7
  30. package/dist/attributes/audio/effects/chain.js.map +1 -1
  31. package/dist/attributes/audio/effects/registry.d.ts +3 -18
  32. package/dist/attributes/audio/effects/registry.d.ts.map +1 -1
  33. package/dist/attributes/audio/effects/registry.js +4 -23
  34. package/dist/attributes/audio/effects/registry.js.map +1 -1
  35. package/dist/attributes/audio/ramp.d.ts +5 -38
  36. package/dist/attributes/audio/ramp.d.ts.map +1 -1
  37. package/dist/attributes/audio/ramp.js +3 -28
  38. package/dist/attributes/audio/ramp.js.map +1 -1
  39. package/dist/attributes/audio/request.d.ts +10 -80
  40. package/dist/attributes/audio/request.d.ts.map +1 -1
  41. package/dist/attributes/audio/request.js +1 -4
  42. package/dist/attributes/audio/request.js.map +1 -1
  43. package/dist/attributes/audio/schedule.d.ts +2 -12
  44. package/dist/attributes/audio/schedule.d.ts.map +1 -1
  45. package/dist/attributes/audio/schedule.js +2 -11
  46. package/dist/attributes/audio/schedule.js.map +1 -1
  47. package/dist/attributes/audio/sound.d.ts +2 -26
  48. package/dist/attributes/audio/sound.d.ts.map +1 -1
  49. package/dist/attributes/audio/sound.js +1 -9
  50. package/dist/attributes/audio/sound.js.map +1 -1
  51. package/dist/attributes/audio/transition.d.ts +1 -8
  52. package/dist/attributes/audio/transition.d.ts.map +1 -1
  53. package/dist/attributes/audio/transition.js.map +1 -1
  54. package/dist/attributes/layout/alignment.d.ts +6 -38
  55. package/dist/attributes/layout/alignment.d.ts.map +1 -1
  56. package/dist/attributes/layout/alignment.js.map +1 -1
  57. package/dist/attributes/layout/insets.d.ts +2 -27
  58. package/dist/attributes/layout/insets.d.ts.map +1 -1
  59. package/dist/attributes/layout/insets.js.map +1 -1
  60. package/dist/attributes/layout/matrix2d.d.ts +29 -114
  61. package/dist/attributes/layout/matrix2d.d.ts.map +1 -1
  62. package/dist/attributes/layout/matrix2d.js +26 -110
  63. package/dist/attributes/layout/matrix2d.js.map +1 -1
  64. package/dist/attributes/layout/size.d.ts +3 -25
  65. package/dist/attributes/layout/size.d.ts.map +1 -1
  66. package/dist/attributes/layout/size.js +2 -18
  67. package/dist/attributes/layout/size.js.map +1 -1
  68. package/dist/attributes/layout/space3d.d.ts +16 -79
  69. package/dist/attributes/layout/space3d.d.ts.map +1 -1
  70. package/dist/attributes/layout/space3d.js +17 -81
  71. package/dist/attributes/layout/space3d.js.map +1 -1
  72. package/dist/attributes/layout/transform3d.d.ts +2 -23
  73. package/dist/attributes/layout/transform3d.d.ts.map +1 -1
  74. package/dist/attributes/layout/transform3d.js +1 -7
  75. package/dist/attributes/layout/transform3d.js.map +1 -1
  76. package/dist/attributes/layout/world-transform.d.ts +2 -16
  77. package/dist/attributes/layout/world-transform.d.ts.map +1 -1
  78. package/dist/attributes/layout/world-transform.js.map +1 -1
  79. package/dist/attributes/properties/decorator.d.ts +13 -73
  80. package/dist/attributes/properties/decorator.d.ts.map +1 -1
  81. package/dist/attributes/properties/decorator.js +9 -40
  82. package/dist/attributes/properties/decorator.js.map +1 -1
  83. package/dist/attributes/properties/typed.d.ts +6 -45
  84. package/dist/attributes/properties/typed.d.ts.map +1 -1
  85. package/dist/attributes/properties/typed.js +6 -37
  86. package/dist/attributes/properties/typed.js.map +1 -1
  87. package/dist/attributes/render3d/orbit.d.ts +11 -83
  88. package/dist/attributes/render3d/orbit.d.ts.map +1 -1
  89. package/dist/attributes/render3d/orbit.js +10 -73
  90. package/dist/attributes/render3d/orbit.js.map +1 -1
  91. package/dist/attributes/shape/corners/corner-radius.d.ts +1 -6
  92. package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
  93. package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
  94. package/dist/attributes/shape/corners/corner-style.d.ts +4 -25
  95. package/dist/attributes/shape/corners/corner-style.d.ts.map +1 -1
  96. package/dist/attributes/shape/corners/corner-style.js +2 -12
  97. package/dist/attributes/shape/corners/corner-style.js.map +1 -1
  98. package/dist/attributes/shape/corners/corners.d.ts +2 -21
  99. package/dist/attributes/shape/corners/corners.d.ts.map +1 -1
  100. package/dist/attributes/shape/corners/corners.js +2 -12
  101. package/dist/attributes/shape/corners/corners.js.map +1 -1
  102. package/dist/attributes/shape/effects/backdrop.d.ts +2 -18
  103. package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
  104. package/dist/attributes/shape/effects/backdrop.js +3 -26
  105. package/dist/attributes/shape/effects/backdrop.js.map +1 -1
  106. package/dist/attributes/shape/effects/chain.d.ts +36 -328
  107. package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
  108. package/dist/attributes/shape/effects/chain.js +24 -242
  109. package/dist/attributes/shape/effects/chain.js.map +1 -1
  110. package/dist/attributes/shape/effects/effect-data.d.ts +19 -127
  111. package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -1
  112. package/dist/attributes/shape/effects/effect-data.js +6 -33
  113. package/dist/attributes/shape/effects/effect-data.js.map +1 -1
  114. package/dist/attributes/shape/effects/implementations/ascii.d.ts +6 -26
  115. package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
  116. package/dist/attributes/shape/effects/implementations/ascii.js +0 -3
  117. package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
  118. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +2 -21
  119. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
  120. package/dist/attributes/shape/effects/implementations/bit-crush.js +0 -1
  121. package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
  122. package/dist/attributes/shape/effects/implementations/block-displace.d.ts +1 -14
  123. package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
  124. package/dist/attributes/shape/effects/implementations/block-displace.js +0 -1
  125. package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
  126. package/dist/attributes/shape/effects/implementations/bloom.d.ts +0 -1
  127. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
  128. package/dist/attributes/shape/effects/implementations/bloom.js +0 -1
  129. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
  130. package/dist/attributes/shape/effects/implementations/blur.d.ts +0 -1
  131. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
  132. package/dist/attributes/shape/effects/implementations/blur.js +0 -1
  133. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
  134. package/dist/attributes/shape/effects/implementations/bulge.d.ts +0 -1
  135. package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
  136. package/dist/attributes/shape/effects/implementations/bulge.js +0 -1
  137. package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
  138. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +0 -1
  139. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
  140. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +0 -1
  141. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
  142. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +1 -12
  143. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
  144. package/dist/attributes/shape/effects/implementations/color-adjustment.js +0 -1
  145. package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
  146. package/dist/attributes/shape/effects/implementations/curves.d.ts +1 -11
  147. package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
  148. package/dist/attributes/shape/effects/implementations/curves.js +1 -6
  149. package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
  150. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +0 -1
  151. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
  152. package/dist/attributes/shape/effects/implementations/directional-blur.js +0 -1
  153. package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
  154. package/dist/attributes/shape/effects/implementations/dither.d.ts +4 -35
  155. package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
  156. package/dist/attributes/shape/effects/implementations/dither.js +1 -7
  157. package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
  158. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +1 -22
  159. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
  160. package/dist/attributes/shape/effects/implementations/drop-shadow.js +0 -1
  161. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
  162. package/dist/attributes/shape/effects/implementations/duotone.d.ts +1 -9
  163. package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
  164. package/dist/attributes/shape/effects/implementations/duotone.js +0 -1
  165. package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
  166. package/dist/attributes/shape/effects/implementations/edges.d.ts +2 -15
  167. package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
  168. package/dist/attributes/shape/effects/implementations/edges.js +0 -1
  169. package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
  170. package/dist/attributes/shape/effects/implementations/glass.d.ts +1 -14
  171. package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
  172. package/dist/attributes/shape/effects/implementations/glass.js +0 -1
  173. package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
  174. package/dist/attributes/shape/effects/implementations/glow.d.ts +7 -47
  175. package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
  176. package/dist/attributes/shape/effects/implementations/glow.js +1 -9
  177. package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
  178. package/dist/attributes/shape/effects/implementations/grain.d.ts +1 -14
  179. package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
  180. package/dist/attributes/shape/effects/implementations/grain.js +0 -1
  181. package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
  182. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +0 -1
  183. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
  184. package/dist/attributes/shape/effects/implementations/grayscale.js +0 -1
  185. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
  186. package/dist/attributes/shape/effects/implementations/halftone.d.ts +5 -29
  187. package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
  188. package/dist/attributes/shape/effects/implementations/halftone.js +0 -1
  189. package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
  190. package/dist/attributes/shape/effects/implementations/invert.d.ts +3 -12
  191. package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
  192. package/dist/attributes/shape/effects/implementations/invert.js +0 -1
  193. package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
  194. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +2 -19
  195. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
  196. package/dist/attributes/shape/effects/implementations/kaleidoscope.js +1 -5
  197. package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
  198. package/dist/attributes/shape/effects/implementations/lut.d.ts +11 -36
  199. package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
  200. package/dist/attributes/shape/effects/implementations/lut.js +2 -8
  201. package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
  202. package/dist/attributes/shape/effects/implementations/magnify.d.ts +0 -1
  203. package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
  204. package/dist/attributes/shape/effects/implementations/magnify.js +0 -1
  205. package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
  206. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +3 -17
  207. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
  208. package/dist/attributes/shape/effects/implementations/motion-blur.js +2 -11
  209. package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
  210. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +1 -12
  211. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
  212. package/dist/attributes/shape/effects/implementations/oil-paint.js +0 -1
  213. package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
  214. package/dist/attributes/shape/effects/implementations/outline.d.ts +2 -14
  215. package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
  216. package/dist/attributes/shape/effects/implementations/outline.js +0 -1
  217. package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
  218. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +1 -15
  219. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
  220. package/dist/attributes/shape/effects/implementations/pixelate.js +0 -1
  221. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
  222. package/dist/attributes/shape/effects/implementations/posterize.d.ts +1 -10
  223. package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
  224. package/dist/attributes/shape/effects/implementations/posterize.js +0 -1
  225. package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
  226. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +3 -26
  227. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
  228. package/dist/attributes/shape/effects/implementations/progressive-blur.js +1 -2
  229. package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
  230. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +2 -16
  231. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
  232. package/dist/attributes/shape/effects/implementations/radial-blur.js +0 -1
  233. package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
  234. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +1 -13
  235. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
  236. package/dist/attributes/shape/effects/implementations/rgb-shift.js +0 -1
  237. package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
  238. package/dist/attributes/shape/effects/implementations/scanlines.d.ts +1 -8
  239. package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
  240. package/dist/attributes/shape/effects/implementations/scanlines.js +0 -1
  241. package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
  242. package/dist/attributes/shape/effects/implementations/scatter.d.ts +0 -1
  243. package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
  244. package/dist/attributes/shape/effects/implementations/scatter.js +0 -1
  245. package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
  246. package/dist/attributes/shape/effects/implementations/shader.d.ts +10 -53
  247. package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
  248. package/dist/attributes/shape/effects/implementations/shader.js +2 -9
  249. package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
  250. package/dist/attributes/shape/effects/implementations/sharpen.d.ts +1 -12
  251. package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
  252. package/dist/attributes/shape/effects/implementations/sharpen.js +0 -1
  253. package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
  254. package/dist/attributes/shape/effects/implementations/streak.d.ts +1 -8
  255. package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
  256. package/dist/attributes/shape/effects/implementations/streak.js +0 -1
  257. package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
  258. package/dist/attributes/shape/effects/implementations/threshold.d.ts +1 -9
  259. package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
  260. package/dist/attributes/shape/effects/implementations/threshold.js +0 -1
  261. package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
  262. package/dist/attributes/shape/effects/implementations/twirl.d.ts +1 -13
  263. package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
  264. package/dist/attributes/shape/effects/implementations/twirl.js +0 -1
  265. package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
  266. package/dist/attributes/shape/effects/implementations/vignette.d.ts +1 -9
  267. package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
  268. package/dist/attributes/shape/effects/implementations/vignette.js +0 -1
  269. package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
  270. package/dist/attributes/shape/effects/implementations/vintage.d.ts +0 -1
  271. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
  272. package/dist/attributes/shape/effects/implementations/vintage.js +0 -1
  273. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
  274. package/dist/attributes/shape/effects/implementations/wave.d.ts +3 -24
  275. package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
  276. package/dist/attributes/shape/effects/implementations/wave.js +1 -5
  277. package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
  278. package/dist/attributes/shape/effects/registry.d.ts +6 -41
  279. package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
  280. package/dist/attributes/shape/effects/registry.js +7 -45
  281. package/dist/attributes/shape/effects/registry.js.map +1 -1
  282. package/dist/attributes/shape/effects/spec.d.ts +6 -30
  283. package/dist/attributes/shape/effects/spec.d.ts.map +1 -1
  284. package/dist/attributes/shape/effects/spec.js +3 -9
  285. package/dist/attributes/shape/effects/spec.js.map +1 -1
  286. package/dist/attributes/shape/fill/blend.d.ts +1 -17
  287. package/dist/attributes/shape/fill/blend.d.ts.map +1 -1
  288. package/dist/attributes/shape/fill/blend.js +2 -15
  289. package/dist/attributes/shape/fill/blend.js.map +1 -1
  290. package/dist/attributes/shape/fill/chain.d.ts +17 -125
  291. package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
  292. package/dist/attributes/shape/fill/chain.js +22 -109
  293. package/dist/attributes/shape/fill/chain.js.map +1 -1
  294. package/dist/attributes/shape/fill/coerce.d.ts +10 -35
  295. package/dist/attributes/shape/fill/coerce.d.ts.map +1 -1
  296. package/dist/attributes/shape/fill/coerce.js +12 -47
  297. package/dist/attributes/shape/fill/coerce.js.map +1 -1
  298. package/dist/attributes/shape/fill/color/parser.d.ts +10 -44
  299. package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
  300. package/dist/attributes/shape/fill/color/parser.js +15 -91
  301. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  302. package/dist/attributes/shape/fill/gradient-stops.d.ts +1 -8
  303. package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -1
  304. package/dist/attributes/shape/fill/gradient-stops.js +2 -13
  305. package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
  306. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -24
  307. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts.map +1 -1
  308. package/dist/attributes/shape/fill/implementations/canvas3d.js +2 -9
  309. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  310. package/dist/attributes/shape/fill/implementations/dot-grid.d.ts +1 -14
  311. package/dist/attributes/shape/fill/implementations/dot-grid.d.ts.map +1 -1
  312. package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
  313. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts +5 -28
  314. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
  315. package/dist/attributes/shape/fill/implementations/fractal-noise.js +0 -1
  316. package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
  317. package/dist/attributes/shape/fill/implementations/grid.d.ts +8 -21
  318. package/dist/attributes/shape/fill/implementations/grid.d.ts.map +1 -1
  319. package/dist/attributes/shape/fill/implementations/grid.js +2 -8
  320. package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
  321. package/dist/attributes/shape/fill/implementations/image.d.ts +13 -79
  322. package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
  323. package/dist/attributes/shape/fill/implementations/image.js +6 -23
  324. package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
  325. package/dist/attributes/shape/fill/implementations/noise.d.ts +2 -15
  326. package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -1
  327. package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
  328. package/dist/attributes/shape/fill/implementations/shader.d.ts +11 -45
  329. package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
  330. package/dist/attributes/shape/fill/implementations/shader.js +5 -17
  331. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  332. package/dist/attributes/shape/fill/implementations/video.d.ts +12 -64
  333. package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -1
  334. package/dist/attributes/shape/fill/implementations/video.js +12 -50
  335. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  336. package/dist/attributes/shape/fill/lerp.d.ts +2 -13
  337. package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
  338. package/dist/attributes/shape/fill/lerp.js +2 -9
  339. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  340. package/dist/attributes/shape/fill/media-preset.d.ts +8 -49
  341. package/dist/attributes/shape/fill/media-preset.d.ts.map +1 -1
  342. package/dist/attributes/shape/fill/media-preset.js +8 -35
  343. package/dist/attributes/shape/fill/media-preset.js.map +1 -1
  344. package/dist/attributes/shape/fill/registry.d.ts +2 -26
  345. package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
  346. package/dist/attributes/shape/fill/registry.js +5 -40
  347. package/dist/attributes/shape/fill/registry.js.map +1 -1
  348. package/dist/attributes/shape/fill/union.d.ts +6 -30
  349. package/dist/attributes/shape/fill/union.d.ts.map +1 -1
  350. package/dist/attributes/shape/fill/union.js +1 -9
  351. package/dist/attributes/shape/fill/union.js.map +1 -1
  352. package/dist/attributes/shape/filters/chain.d.ts +15 -168
  353. package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
  354. package/dist/attributes/shape/filters/chain.js +8 -132
  355. package/dist/attributes/shape/filters/chain.js.map +1 -1
  356. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +1 -7
  357. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
  358. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
  359. package/dist/attributes/shape/filters/implementations/curves.d.ts +1 -7
  360. package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -1
  361. package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
  362. package/dist/attributes/shape/filters/implementations/echo.d.ts +1 -11
  363. package/dist/attributes/shape/filters/implementations/echo.d.ts.map +1 -1
  364. package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
  365. package/dist/attributes/shape/filters/index.d.ts +1 -6
  366. package/dist/attributes/shape/filters/index.d.ts.map +1 -1
  367. package/dist/attributes/shape/filters/index.js +0 -2
  368. package/dist/attributes/shape/filters/index.js.map +1 -1
  369. package/dist/attributes/shape/filters/registry.d.ts +5 -35
  370. package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
  371. package/dist/attributes/shape/filters/registry.js +7 -50
  372. package/dist/attributes/shape/filters/registry.js.map +1 -1
  373. package/dist/attributes/shape/filters/union.d.ts +10 -51
  374. package/dist/attributes/shape/filters/union.d.ts.map +1 -1
  375. package/dist/attributes/shape/filters/union.js.map +1 -1
  376. package/dist/attributes/shape/path/anchors.d.ts +18 -106
  377. package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
  378. package/dist/attributes/shape/path/anchors.js +15 -124
  379. package/dist/attributes/shape/path/anchors.js.map +1 -1
  380. package/dist/attributes/shape/path/bezier.d.ts +6 -54
  381. package/dist/attributes/shape/path/bezier.d.ts.map +1 -1
  382. package/dist/attributes/shape/path/bezier.js +10 -98
  383. package/dist/attributes/shape/path/bezier.js.map +1 -1
  384. package/dist/attributes/shape/path/index.d.ts +1 -11
  385. package/dist/attributes/shape/path/index.d.ts.map +1 -1
  386. package/dist/attributes/shape/path/index.js +1 -11
  387. package/dist/attributes/shape/path/index.js.map +1 -1
  388. package/dist/attributes/shape/path/measure.d.ts +5 -41
  389. package/dist/attributes/shape/path/measure.d.ts.map +1 -1
  390. package/dist/attributes/shape/path/measure.js +8 -57
  391. package/dist/attributes/shape/path/measure.js.map +1 -1
  392. package/dist/attributes/shape/path/morph.d.ts +4 -41
  393. package/dist/attributes/shape/path/morph.d.ts.map +1 -1
  394. package/dist/attributes/shape/path/morph.js +17 -117
  395. package/dist/attributes/shape/path/morph.js.map +1 -1
  396. package/dist/attributes/shape/path/ops.d.ts +5 -19
  397. package/dist/attributes/shape/path/ops.d.ts.map +1 -1
  398. package/dist/attributes/shape/path/ops.js.map +1 -1
  399. package/dist/attributes/shape/path/types.d.ts +10 -67
  400. package/dist/attributes/shape/path/types.d.ts.map +1 -1
  401. package/dist/attributes/shape/path/types.js +0 -1
  402. package/dist/attributes/shape/path/types.js.map +1 -1
  403. package/dist/attributes/shape/path/walk.d.ts +9 -63
  404. package/dist/attributes/shape/path/walk.d.ts.map +1 -1
  405. package/dist/attributes/shape/path/walk.js +21 -100
  406. package/dist/attributes/shape/path/walk.js.map +1 -1
  407. package/dist/attributes/shape/shaders/language.d.ts +2 -14
  408. package/dist/attributes/shape/shaders/language.d.ts.map +1 -1
  409. package/dist/attributes/shape/shaders/language.js +1 -8
  410. package/dist/attributes/shape/shaders/language.js.map +1 -1
  411. package/dist/attributes/shape/shaders/pack.d.ts +13 -78
  412. package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
  413. package/dist/attributes/shape/shaders/pack.js +1 -10
  414. package/dist/attributes/shape/shaders/pack.js.map +1 -1
  415. package/dist/attributes/shape/shaders/resolve.d.ts +1 -11
  416. package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
  417. package/dist/attributes/shape/shaders/resolve.js +3 -28
  418. package/dist/attributes/shape/shaders/resolve.js.map +1 -1
  419. package/dist/attributes/shape/shaders/uniforms.d.ts +3 -24
  420. package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -1
  421. package/dist/attributes/shape/shaders/uniforms.js +0 -0
  422. package/dist/attributes/shape/shaders/uniforms.js.map +1 -1
  423. package/dist/attributes/shape/shadow/shadow.d.ts +3 -20
  424. package/dist/attributes/shape/shadow/shadow.d.ts.map +1 -1
  425. package/dist/attributes/shape/shadow/shadow.js +0 -3
  426. package/dist/attributes/shape/shadow/shadow.js.map +1 -1
  427. package/dist/attributes/shape/stroke/stroke.d.ts +9 -58
  428. package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
  429. package/dist/attributes/shape/stroke/stroke.js +0 -6
  430. package/dist/attributes/shape/stroke/stroke.js.map +1 -1
  431. package/dist/attributes/shared/operators.d.ts +1 -8
  432. package/dist/attributes/shared/operators.d.ts.map +1 -1
  433. package/dist/attributes/shared/operators.js.map +1 -1
  434. package/dist/attributes/text/index.d.ts +1 -11
  435. package/dist/attributes/text/index.d.ts.map +1 -1
  436. package/dist/attributes/text/index.js +1 -11
  437. package/dist/attributes/text/index.js.map +1 -1
  438. package/dist/attributes/text/ops.d.ts +4 -30
  439. package/dist/attributes/text/ops.d.ts.map +1 -1
  440. package/dist/attributes/text/ops.js +7 -23
  441. package/dist/attributes/text/ops.js.map +1 -1
  442. package/dist/attributes/text/types.d.ts +5 -28
  443. package/dist/attributes/text/types.d.ts.map +1 -1
  444. package/dist/attributes/text/types.js.map +1 -1
  445. package/dist/browser/chunks/chunk-3ZIUZZC7.js +13 -0
  446. package/dist/browser/chunks/chunk-3ZIUZZC7.js.map +7 -0
  447. package/dist/browser/chunks/{chunk-CCGVIR4F.js → chunk-5TDMGUXQ.js} +3 -3
  448. package/dist/browser/chunks/chunk-5TDMGUXQ.js.map +7 -0
  449. package/dist/browser/chunks/chunk-7YOYMMXK.js +6 -0
  450. package/dist/browser/chunks/chunk-7YOYMMXK.js.map +7 -0
  451. package/dist/browser/chunks/{chunk-4BDLFEOC.js → chunk-GEJEQQER.js} +1 -1
  452. package/dist/browser/chunks/chunk-GEJEQQER.js.map +7 -0
  453. package/dist/browser/component.js +1 -1
  454. package/dist/browser/experimental.js +1 -1
  455. package/dist/browser/index.js +1 -1
  456. package/dist/browser/index.js.map +4 -4
  457. package/dist/browser/manifest.json +1 -1
  458. package/dist/browser/sdk.js +1 -1
  459. package/dist/component.d.ts +3 -10
  460. package/dist/component.d.ts.map +1 -1
  461. package/dist/component.js +3 -10
  462. package/dist/component.js.map +1 -1
  463. package/dist/components/builtins/geometry/geometry.d.ts +15 -62
  464. package/dist/components/builtins/geometry/geometry.d.ts.map +1 -1
  465. package/dist/components/builtins/geometry/geometry.js.map +1 -1
  466. package/dist/components/builtins/geometry/shape-outline.d.ts +12 -61
  467. package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -1
  468. package/dist/components/builtins/geometry/shape-outline.js +29 -168
  469. package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
  470. package/dist/components/builtins/layout/layout.d.ts +1 -14
  471. package/dist/components/builtins/layout/layout.d.ts.map +1 -1
  472. package/dist/components/builtins/layout/layout.js.map +1 -1
  473. package/dist/components/builtins/media/media.d.ts +11 -51
  474. package/dist/components/builtins/media/media.d.ts.map +1 -1
  475. package/dist/components/builtins/media/media.js +3 -7
  476. package/dist/components/builtins/media/media.js.map +1 -1
  477. package/dist/components/builtins/text/number-format.d.ts +14 -47
  478. package/dist/components/builtins/text/number-format.d.ts.map +1 -1
  479. package/dist/components/builtins/text/number-format.js +19 -69
  480. package/dist/components/builtins/text/number-format.js.map +1 -1
  481. package/dist/components/builtins/text/number-pattern.d.ts +3 -37
  482. package/dist/components/builtins/text/number-pattern.d.ts.map +1 -1
  483. package/dist/components/builtins/text/number-pattern.js +6 -48
  484. package/dist/components/builtins/text/number-pattern.js.map +1 -1
  485. package/dist/components/builtins/text/text-defaults.d.ts +7 -25
  486. package/dist/components/builtins/text/text-defaults.d.ts.map +1 -1
  487. package/dist/components/builtins/text/text-defaults.js +7 -25
  488. package/dist/components/builtins/text/text-defaults.js.map +1 -1
  489. package/dist/components/builtins/text/text-layout.d.ts +2 -11
  490. package/dist/components/builtins/text/text-layout.d.ts.map +1 -1
  491. package/dist/components/builtins/text/text-layout.js +7 -22
  492. package/dist/components/builtins/text/text-layout.js.map +1 -1
  493. package/dist/components/builtins/text/text.d.ts +8 -46
  494. package/dist/components/builtins/text/text.d.ts.map +1 -1
  495. package/dist/components/builtins/text/text.js.map +1 -1
  496. package/dist/components/builtins/three/canvas3d.d.ts +6 -51
  497. package/dist/components/builtins/three/canvas3d.d.ts.map +1 -1
  498. package/dist/components/builtins/three/canvas3d.js.map +1 -1
  499. package/dist/components/builtins/three/grid-geometry3d.d.ts +3 -39
  500. package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -1
  501. package/dist/components/builtins/three/grid-geometry3d.js +8 -46
  502. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
  503. package/dist/components/builtins/three/three.d.ts +22 -117
  504. package/dist/components/builtins/three/three.d.ts.map +1 -1
  505. package/dist/components/builtins/three/three.js +5 -17
  506. package/dist/components/builtins/three/three.js.map +1 -1
  507. package/dist/components/factory/api.d.ts.map +1 -1
  508. package/dist/components/factory/api.js.map +1 -1
  509. package/dist/components/factory/views.d.ts.map +1 -1
  510. package/dist/components/factory/views.js +0 -2
  511. package/dist/components/factory/views.js.map +1 -1
  512. package/dist/components/trees/2d/group-bounds.d.ts +12 -41
  513. package/dist/components/trees/2d/group-bounds.d.ts.map +1 -1
  514. package/dist/components/trees/2d/group-bounds.js +3 -22
  515. package/dist/components/trees/2d/group-bounds.js.map +1 -1
  516. package/dist/components/trees/2d/node-lifecycle.d.ts +8 -36
  517. package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -1
  518. package/dist/components/trees/2d/node-lifecycle.js +35 -127
  519. package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
  520. package/dist/components/trees/2d/node-motion.d.ts +4 -36
  521. package/dist/components/trees/2d/node-motion.d.ts.map +1 -1
  522. package/dist/components/trees/2d/node-motion.js +3 -31
  523. package/dist/components/trees/2d/node-motion.js.map +1 -1
  524. package/dist/components/trees/2d/node-render.d.ts +3 -20
  525. package/dist/components/trees/2d/node-render.d.ts.map +1 -1
  526. package/dist/components/trees/2d/node-render.js +4 -23
  527. package/dist/components/trees/2d/node-render.js.map +1 -1
  528. package/dist/components/trees/2d/node-space.d.ts +4 -23
  529. package/dist/components/trees/2d/node-space.d.ts.map +1 -1
  530. package/dist/components/trees/2d/node-space.js +3 -17
  531. package/dist/components/trees/2d/node-space.js.map +1 -1
  532. package/dist/components/trees/2d/node-transform.d.ts +4 -33
  533. package/dist/components/trees/2d/node-transform.d.ts.map +1 -1
  534. package/dist/components/trees/2d/node-transform.js +4 -33
  535. package/dist/components/trees/2d/node-transform.js.map +1 -1
  536. package/dist/components/trees/2d/node2d.d.ts +112 -622
  537. package/dist/components/trees/2d/node2d.d.ts.map +1 -1
  538. package/dist/components/trees/2d/node2d.js +131 -605
  539. package/dist/components/trees/2d/node2d.js.map +1 -1
  540. package/dist/components/trees/audio/node-audio.d.ts +17 -65
  541. package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
  542. package/dist/components/trees/audio/node-audio.js +18 -68
  543. package/dist/components/trees/audio/node-audio.js.map +1 -1
  544. package/dist/components/trees/node/node-editor-state.d.ts +5 -45
  545. package/dist/components/trees/node/node-editor-state.d.ts.map +1 -1
  546. package/dist/components/trees/node/node-editor-state.js +1 -13
  547. package/dist/components/trees/node/node-editor-state.js.map +1 -1
  548. package/dist/components/trees/node/node-reactive.d.ts +6 -53
  549. package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
  550. package/dist/components/trees/node/node-reactive.js +4 -33
  551. package/dist/components/trees/node/node-reactive.js.map +1 -1
  552. package/dist/components/trees/node/node-time.d.ts +2 -15
  553. package/dist/components/trees/node/node-time.d.ts.map +1 -1
  554. package/dist/components/trees/node/node-time.js.map +1 -1
  555. package/dist/components/trees/node/node-walk.d.ts +7 -32
  556. package/dist/components/trees/node/node-walk.d.ts.map +1 -1
  557. package/dist/components/trees/node/node-walk.js +7 -32
  558. package/dist/components/trees/node/node-walk.js.map +1 -1
  559. package/dist/components/trees/node/node.d.ts +43 -248
  560. package/dist/components/trees/node/node.d.ts.map +1 -1
  561. package/dist/components/trees/node/node.js +51 -229
  562. package/dist/components/trees/node/node.js.map +1 -1
  563. package/dist/components/trees/root/canvas2d-node.d.ts +7 -60
  564. package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -1
  565. package/dist/components/trees/root/canvas2d-node.js +7 -47
  566. package/dist/components/trees/root/canvas2d-node.js.map +1 -1
  567. package/dist/components/trees/three/node3d.d.ts +24 -112
  568. package/dist/components/trees/three/node3d.d.ts.map +1 -1
  569. package/dist/components/trees/three/node3d.js +22 -104
  570. package/dist/components/trees/three/node3d.js.map +1 -1
  571. package/dist/document/audio.d.ts +9 -21
  572. package/dist/document/audio.d.ts.map +1 -1
  573. package/dist/document/audio.js +13 -28
  574. package/dist/document/audio.js.map +1 -1
  575. package/dist/document/builtins.d.ts +3 -9
  576. package/dist/document/builtins.d.ts.map +1 -1
  577. package/dist/document/builtins.js +43 -89
  578. package/dist/document/builtins.js.map +1 -1
  579. package/dist/document/command-traits.d.ts +14 -37
  580. package/dist/document/command-traits.d.ts.map +1 -1
  581. package/dist/document/command-traits.js +22 -39
  582. package/dist/document/command-traits.js.map +1 -1
  583. package/dist/document/deny-globals.d.ts +9 -43
  584. package/dist/document/deny-globals.d.ts.map +1 -1
  585. package/dist/document/deny-globals.js +18 -58
  586. package/dist/document/deny-globals.js.map +1 -1
  587. package/dist/document/diff.d.ts +6 -16
  588. package/dist/document/diff.d.ts.map +1 -1
  589. package/dist/document/diff.js +5 -11
  590. package/dist/document/diff.js.map +1 -1
  591. package/dist/document/doc-index.d.ts +5 -13
  592. package/dist/document/doc-index.d.ts.map +1 -1
  593. package/dist/document/doc-index.js +0 -2
  594. package/dist/document/doc-index.js.map +1 -1
  595. package/dist/document/expression/compile.d.ts +2 -2
  596. package/dist/document/expression/compile.d.ts.map +1 -1
  597. package/dist/document/expression/compile.js +8 -18
  598. package/dist/document/expression/compile.js.map +1 -1
  599. package/dist/document/expression/index.d.ts +11 -41
  600. package/dist/document/expression/index.d.ts.map +1 -1
  601. package/dist/document/expression/index.js +11 -41
  602. package/dist/document/expression/index.js.map +1 -1
  603. package/dist/document/expression/ops.d.ts +3 -12
  604. package/dist/document/expression/ops.d.ts.map +1 -1
  605. package/dist/document/expression/ops.js +4 -20
  606. package/dist/document/expression/ops.js.map +1 -1
  607. package/dist/document/expression/parse.d.ts +4 -14
  608. package/dist/document/expression/parse.d.ts.map +1 -1
  609. package/dist/document/expression/parse.js +34 -55
  610. package/dist/document/expression/parse.js.map +1 -1
  611. package/dist/document/expression/refs.d.ts +2 -8
  612. package/dist/document/expression/refs.d.ts.map +1 -1
  613. package/dist/document/expression/refs.js +2 -6
  614. package/dist/document/expression/refs.js.map +1 -1
  615. package/dist/document/expression/types.d.ts +18 -63
  616. package/dist/document/expression/types.d.ts.map +1 -1
  617. package/dist/document/expression/types.js +4 -15
  618. package/dist/document/expression/types.js.map +1 -1
  619. package/dist/document/expression/walk.d.ts +6 -20
  620. package/dist/document/expression/walk.d.ts.map +1 -1
  621. package/dist/document/expression/walk.js +18 -44
  622. package/dist/document/expression/walk.js.map +1 -1
  623. package/dist/document/index.js +2 -3
  624. package/dist/document/index.js.map +1 -1
  625. package/dist/document/migrate.d.ts +7 -22
  626. package/dist/document/migrate.d.ts.map +1 -1
  627. package/dist/document/migrate.js +44 -15
  628. package/dist/document/migrate.js.map +1 -1
  629. package/dist/document/missing-node.d.ts +4 -11
  630. package/dist/document/missing-node.d.ts.map +1 -1
  631. package/dist/document/missing-node.js +2 -5
  632. package/dist/document/missing-node.js.map +1 -1
  633. package/dist/document/node-decorator.d.ts +12 -53
  634. package/dist/document/node-decorator.d.ts.map +1 -1
  635. package/dist/document/node-decorator.js +16 -57
  636. package/dist/document/node-decorator.js.map +1 -1
  637. package/dist/document/node-descriptor.d.ts +25 -62
  638. package/dist/document/node-descriptor.d.ts.map +1 -1
  639. package/dist/document/node-descriptor.js.map +1 -1
  640. package/dist/document/placement.d.ts +18 -41
  641. package/dist/document/placement.d.ts.map +1 -1
  642. package/dist/document/placement.js +4 -11
  643. package/dist/document/placement.js.map +1 -1
  644. package/dist/document/project.d.ts +19 -52
  645. package/dist/document/project.d.ts.map +1 -1
  646. package/dist/document/project.js +2 -6
  647. package/dist/document/project.js.map +1 -1
  648. package/dist/document/prop-evolution.d.ts +10 -20
  649. package/dist/document/prop-evolution.d.ts.map +1 -1
  650. package/dist/document/prop-evolution.js +3 -7
  651. package/dist/document/prop-evolution.js.map +1 -1
  652. package/dist/document/registry.d.ts +80 -318
  653. package/dist/document/registry.d.ts.map +1 -1
  654. package/dist/document/registry.js +43 -147
  655. package/dist/document/registry.js.map +1 -1
  656. package/dist/document/settled-index.d.ts +11 -23
  657. package/dist/document/settled-index.d.ts.map +1 -1
  658. package/dist/document/settled-index.js +15 -34
  659. package/dist/document/settled-index.js.map +1 -1
  660. package/dist/document/timeline-patch.d.ts +6 -15
  661. package/dist/document/timeline-patch.d.ts.map +1 -1
  662. package/dist/document/timeline-patch.js +12 -21
  663. package/dist/document/timeline-patch.js.map +1 -1
  664. package/dist/document/timeline.d.ts +56 -263
  665. package/dist/document/timeline.d.ts.map +1 -1
  666. package/dist/document/timeline.js +71 -275
  667. package/dist/document/timeline.js.map +1 -1
  668. package/dist/document/types.d.ts +90 -264
  669. package/dist/document/types.d.ts.map +1 -1
  670. package/dist/document/types.js +13 -30
  671. package/dist/document/types.js.map +1 -1
  672. package/dist/document/validate.d.ts +10 -40
  673. package/dist/document/validate.d.ts.map +1 -1
  674. package/dist/document/validate.js +72 -137
  675. package/dist/document/validate.js.map +1 -1
  676. package/dist/document/vocabulary.d.ts +4 -7
  677. package/dist/document/vocabulary.d.ts.map +1 -1
  678. package/dist/document/vocabulary.js +0 -1
  679. package/dist/document/vocabulary.js.map +1 -1
  680. package/dist/index.d.ts +0 -1
  681. package/dist/index.d.ts.map +1 -1
  682. package/dist/index.js +0 -1
  683. package/dist/index.js.map +1 -1
  684. package/dist/layout/bounds.d.ts +1 -11
  685. package/dist/layout/bounds.d.ts.map +1 -1
  686. package/dist/layout/bounds.js.map +1 -1
  687. package/dist/layout/flex.d.ts +6 -20
  688. package/dist/layout/flex.d.ts.map +1 -1
  689. package/dist/layout/flex.js +7 -28
  690. package/dist/layout/flex.js.map +1 -1
  691. package/dist/layout/ops.d.ts +2 -11
  692. package/dist/layout/ops.d.ts.map +1 -1
  693. package/dist/layout/ops.js +2 -22
  694. package/dist/layout/ops.js.map +1 -1
  695. package/dist/layout/types.d.ts +11 -55
  696. package/dist/layout/types.d.ts.map +1 -1
  697. package/dist/layout/types.js.map +1 -1
  698. package/dist/platform/audio-sink.d.ts +7 -43
  699. package/dist/platform/audio-sink.d.ts.map +1 -1
  700. package/dist/platform/audio-sink.js +4 -29
  701. package/dist/platform/audio-sink.js.map +1 -1
  702. package/dist/platform/exporter.d.ts +5 -31
  703. package/dist/platform/exporter.d.ts.map +1 -1
  704. package/dist/platform/exporter.js.map +1 -1
  705. package/dist/platform/stepped-clock.d.ts +1 -16
  706. package/dist/platform/stepped-clock.d.ts.map +1 -1
  707. package/dist/platform/stepped-clock.js +1 -16
  708. package/dist/platform/stepped-clock.js.map +1 -1
  709. package/dist/platform/storage-adapter.d.ts +8 -68
  710. package/dist/platform/storage-adapter.d.ts.map +1 -1
  711. package/dist/platform/storage-adapter.js +8 -60
  712. package/dist/platform/storage-adapter.js.map +1 -1
  713. package/dist/platform/ticker.d.ts +11 -45
  714. package/dist/platform/ticker.d.ts.map +1 -1
  715. package/dist/platform/ticker.js +10 -37
  716. package/dist/platform/ticker.js.map +1 -1
  717. package/dist/project/config.d.ts +4 -14
  718. package/dist/project/config.d.ts.map +1 -1
  719. package/dist/project/config.js.map +1 -1
  720. package/dist/project/tree.d.ts +6 -35
  721. package/dist/project/tree.d.ts.map +1 -1
  722. package/dist/project/tree.js +1 -8
  723. package/dist/project/tree.js.map +1 -1
  724. package/dist/props/host.d.ts +2 -13
  725. package/dist/props/host.d.ts.map +1 -1
  726. package/dist/props/host.js.map +1 -1
  727. package/dist/props/layout.d.ts +1 -12
  728. package/dist/props/layout.d.ts.map +1 -1
  729. package/dist/props/layout.js +1 -12
  730. package/dist/props/layout.js.map +1 -1
  731. package/dist/props/observer.d.ts +1 -7
  732. package/dist/props/observer.d.ts.map +1 -1
  733. package/dist/props/observer.js.map +1 -1
  734. package/dist/props/slot.d.ts +6 -19
  735. package/dist/props/slot.d.ts.map +1 -1
  736. package/dist/props/slot.js +5 -14
  737. package/dist/props/slot.js.map +1 -1
  738. package/dist/render/canvas-render-context2d.d.ts +8 -68
  739. package/dist/render/canvas-render-context2d.d.ts.map +1 -1
  740. package/dist/render/canvas-render-context2d.js +8 -69
  741. package/dist/render/canvas-render-context2d.js.map +1 -1
  742. package/dist/render/clip-contains.d.ts +2 -16
  743. package/dist/render/clip-contains.d.ts.map +1 -1
  744. package/dist/render/clip-contains.js +21 -82
  745. package/dist/render/clip-contains.js.map +1 -1
  746. package/dist/render/clip.d.ts +7 -25
  747. package/dist/render/clip.d.ts.map +1 -1
  748. package/dist/render/clip.js +5 -17
  749. package/dist/render/clip.js.map +1 -1
  750. package/dist/render/descriptors/ellipse.d.ts.map +1 -1
  751. package/dist/render/descriptors/ellipse.js +0 -1
  752. package/dist/render/descriptors/ellipse.js.map +1 -1
  753. package/dist/render/descriptors/line.d.ts.map +1 -1
  754. package/dist/render/descriptors/line.js +0 -1
  755. package/dist/render/descriptors/line.js.map +1 -1
  756. package/dist/render/descriptors/path-builder.d.ts +4 -32
  757. package/dist/render/descriptors/path-builder.d.ts.map +1 -1
  758. package/dist/render/descriptors/path-builder.js +3 -25
  759. package/dist/render/descriptors/path-builder.js.map +1 -1
  760. package/dist/render/descriptors/path.d.ts +1 -11
  761. package/dist/render/descriptors/path.d.ts.map +1 -1
  762. package/dist/render/descriptors/path.js +0 -1
  763. package/dist/render/descriptors/path.js.map +1 -1
  764. package/dist/render/descriptors/polygon.d.ts.map +1 -1
  765. package/dist/render/descriptors/polygon.js +0 -1
  766. package/dist/render/descriptors/polygon.js.map +1 -1
  767. package/dist/render/descriptors/polygram.d.ts.map +1 -1
  768. package/dist/render/descriptors/polygram.js +0 -1
  769. package/dist/render/descriptors/polygram.js.map +1 -1
  770. package/dist/render/descriptors/rect.d.ts.map +1 -1
  771. package/dist/render/descriptors/rect.js +0 -1
  772. package/dist/render/descriptors/rect.js.map +1 -1
  773. package/dist/render/descriptors/richtext.d.ts.map +1 -1
  774. package/dist/render/descriptors/richtext.js +0 -1
  775. package/dist/render/descriptors/richtext.js.map +1 -1
  776. package/dist/render/descriptors/shape.d.ts +17 -77
  777. package/dist/render/descriptors/shape.d.ts.map +1 -1
  778. package/dist/render/descriptors/shape.js +13 -47
  779. package/dist/render/descriptors/shape.js.map +1 -1
  780. package/dist/render/descriptors/text.d.ts +15 -94
  781. package/dist/render/descriptors/text.d.ts.map +1 -1
  782. package/dist/render/descriptors/text.js +8 -50
  783. package/dist/render/descriptors/text.js.map +1 -1
  784. package/dist/render/descriptors/transform.d.ts +5 -16
  785. package/dist/render/descriptors/transform.d.ts.map +1 -1
  786. package/dist/render/descriptors/transform.js +1 -17
  787. package/dist/render/descriptors/transform.js.map +1 -1
  788. package/dist/render/graphics2d.d.ts +24 -116
  789. package/dist/render/graphics2d.d.ts.map +1 -1
  790. package/dist/render/graphics2d.js +23 -108
  791. package/dist/render/graphics2d.js.map +1 -1
  792. package/dist/render/measure-context.d.ts +5 -29
  793. package/dist/render/measure-context.d.ts.map +1 -1
  794. package/dist/render/measure-context.js.map +1 -1
  795. package/dist/render/null-render-context.d.ts +2 -20
  796. package/dist/render/null-render-context.d.ts.map +1 -1
  797. package/dist/render/null-render-context.js +2 -20
  798. package/dist/render/null-render-context.js.map +1 -1
  799. package/dist/render/render-context2d.d.ts +52 -208
  800. package/dist/render/render-context2d.d.ts.map +1 -1
  801. package/dist/render/render-context2d.js.map +1 -1
  802. package/dist/render/surface.d.ts +2 -19
  803. package/dist/render/surface.d.ts.map +1 -1
  804. package/dist/render/surface.js.map +1 -1
  805. package/dist/render/text-defaults.d.ts +1 -17
  806. package/dist/render/text-defaults.d.ts.map +1 -1
  807. package/dist/render/text-defaults.js +6 -40
  808. package/dist/render/text-defaults.js.map +1 -1
  809. package/dist/render/text-layout.d.ts +12 -55
  810. package/dist/render/text-layout.d.ts.map +1 -1
  811. package/dist/render/text-layout.js +2 -16
  812. package/dist/render/text-layout.js.map +1 -1
  813. package/dist/render3d/bounds3d.d.ts +10 -32
  814. package/dist/render3d/bounds3d.d.ts.map +1 -1
  815. package/dist/render3d/bounds3d.js +2 -12
  816. package/dist/render3d/bounds3d.js.map +1 -1
  817. package/dist/render3d/builders.d.ts +8 -35
  818. package/dist/render3d/builders.d.ts.map +1 -1
  819. package/dist/render3d/builders.js +8 -35
  820. package/dist/render3d/builders.js.map +1 -1
  821. package/dist/render3d/camera.d.ts +10 -57
  822. package/dist/render3d/camera.d.ts.map +1 -1
  823. package/dist/render3d/camera.js +4 -26
  824. package/dist/render3d/camera.js.map +1 -1
  825. package/dist/render3d/fill3d.d.ts +7 -45
  826. package/dist/render3d/fill3d.d.ts.map +1 -1
  827. package/dist/render3d/fill3d.js +15 -85
  828. package/dist/render3d/fill3d.js.map +1 -1
  829. package/dist/render3d/geometry.d.ts +18 -106
  830. package/dist/render3d/geometry.d.ts.map +1 -1
  831. package/dist/render3d/geometry.js +2 -20
  832. package/dist/render3d/geometry.js.map +1 -1
  833. package/dist/render3d/graphics3d.d.ts +29 -133
  834. package/dist/render3d/graphics3d.d.ts.map +1 -1
  835. package/dist/render3d/graphics3d.js +23 -110
  836. package/dist/render3d/graphics3d.js.map +1 -1
  837. package/dist/render3d/index.d.ts +1 -16
  838. package/dist/render3d/index.d.ts.map +1 -1
  839. package/dist/render3d/index.js +1 -16
  840. package/dist/render3d/index.js.map +1 -1
  841. package/dist/render3d/inert.d.ts.map +1 -1
  842. package/dist/render3d/inert.js +1 -14
  843. package/dist/render3d/inert.js.map +1 -1
  844. package/dist/render3d/light.d.ts +3 -26
  845. package/dist/render3d/light.d.ts.map +1 -1
  846. package/dist/render3d/light.js.map +1 -1
  847. package/dist/render3d/material.d.ts +13 -87
  848. package/dist/render3d/material.d.ts.map +1 -1
  849. package/dist/render3d/material.js +2 -16
  850. package/dist/render3d/material.js.map +1 -1
  851. package/dist/render3d/matrix4.d.ts +14 -68
  852. package/dist/render3d/matrix4.d.ts.map +1 -1
  853. package/dist/render3d/matrix4.js +11 -60
  854. package/dist/render3d/matrix4.js.map +1 -1
  855. package/dist/render3d/render-context3d.d.ts +13 -51
  856. package/dist/render3d/render-context3d.d.ts.map +1 -1
  857. package/dist/render3d/render-context3d.js +9 -21
  858. package/dist/render3d/render-context3d.js.map +1 -1
  859. package/dist/render3d/resources.d.ts +9 -53
  860. package/dist/render3d/resources.d.ts.map +1 -1
  861. package/dist/render3d/resources.js +8 -48
  862. package/dist/render3d/resources.js.map +1 -1
  863. package/dist/render3d/rounded-box.d.ts +7 -21
  864. package/dist/render3d/rounded-box.d.ts.map +1 -1
  865. package/dist/render3d/rounded-box.js +7 -46
  866. package/dist/render3d/rounded-box.js.map +1 -1
  867. package/dist/render3d/scene-settings.d.ts +20 -78
  868. package/dist/render3d/scene-settings.d.ts.map +1 -1
  869. package/dist/render3d/scene-settings.js.map +1 -1
  870. package/dist/render3d/scene3d.d.ts +11 -53
  871. package/dist/render3d/scene3d.d.ts.map +1 -1
  872. package/dist/render3d/scene3d.js +12 -59
  873. package/dist/render3d/scene3d.js.map +1 -1
  874. package/dist/render3d/segments.d.ts +2 -25
  875. package/dist/render3d/segments.d.ts.map +1 -1
  876. package/dist/render3d/segments.js +1 -11
  877. package/dist/render3d/segments.js.map +1 -1
  878. package/dist/render3d/texture.d.ts +25 -112
  879. package/dist/render3d/texture.d.ts.map +1 -1
  880. package/dist/render3d/texture.js +3 -27
  881. package/dist/render3d/texture.js.map +1 -1
  882. package/dist/render3d/tracking.d.ts +2 -19
  883. package/dist/render3d/tracking.d.ts.map +1 -1
  884. package/dist/render3d/tracking.js +2 -19
  885. package/dist/render3d/tracking.js.map +1 -1
  886. package/dist/render3d/transform.d.ts +14 -60
  887. package/dist/render3d/transform.d.ts.map +1 -1
  888. package/dist/render3d/transform.js +0 -2
  889. package/dist/render3d/transform.js.map +1 -1
  890. package/dist/render3d/vector3.d.ts +6 -48
  891. package/dist/render3d/vector3.d.ts.map +1 -1
  892. package/dist/render3d/vector3.js +4 -38
  893. package/dist/render3d/vector3.js.map +1 -1
  894. package/dist/render3d/walk.d.ts +3 -27
  895. package/dist/render3d/walk.d.ts.map +1 -1
  896. package/dist/render3d/walk.js +5 -33
  897. package/dist/render3d/walk.js.map +1 -1
  898. package/dist/runtime/asset-refine.d.ts +34 -20
  899. package/dist/runtime/asset-refine.d.ts.map +1 -1
  900. package/dist/runtime/asset-refine.js +127 -31
  901. package/dist/runtime/asset-refine.js.map +1 -1
  902. package/dist/runtime/asset-timeline.d.ts +14 -53
  903. package/dist/runtime/asset-timeline.d.ts.map +1 -1
  904. package/dist/runtime/asset-timeline.js +6 -27
  905. package/dist/runtime/asset-timeline.js.map +1 -1
  906. package/dist/runtime/asset-update.d.ts +7 -26
  907. package/dist/runtime/asset-update.d.ts.map +1 -1
  908. package/dist/runtime/asset-update.js +6 -18
  909. package/dist/runtime/asset-update.js.map +1 -1
  910. package/dist/runtime/audio-index.d.ts +0 -2
  911. package/dist/runtime/audio-index.d.ts.map +1 -1
  912. package/dist/runtime/audio-index.js +0 -2
  913. package/dist/runtime/audio-index.js.map +1 -1
  914. package/dist/runtime/builtin-context.d.ts +3 -9
  915. package/dist/runtime/builtin-context.d.ts.map +1 -1
  916. package/dist/runtime/builtin-context.js +3 -9
  917. package/dist/runtime/builtin-context.js.map +1 -1
  918. package/dist/runtime/clip-instance.d.ts +12 -39
  919. package/dist/runtime/clip-instance.d.ts.map +1 -1
  920. package/dist/runtime/clip-instance.js +21 -45
  921. package/dist/runtime/clip-instance.js.map +1 -1
  922. package/dist/runtime/clip-store.d.ts +26 -68
  923. package/dist/runtime/clip-store.d.ts.map +1 -1
  924. package/dist/runtime/clip-store.js +47 -81
  925. package/dist/runtime/clip-store.js.map +1 -1
  926. package/dist/runtime/engine.d.ts +31 -85
  927. package/dist/runtime/engine.d.ts.map +1 -1
  928. package/dist/runtime/engine.js +16 -49
  929. package/dist/runtime/engine.js.map +1 -1
  930. package/dist/runtime/frame-time.d.ts +4 -15
  931. package/dist/runtime/frame-time.d.ts.map +1 -1
  932. package/dist/runtime/frame-time.js +5 -12
  933. package/dist/runtime/frame-time.js.map +1 -1
  934. package/dist/runtime/index.d.ts +0 -1
  935. package/dist/runtime/index.d.ts.map +1 -1
  936. package/dist/runtime/index.js +0 -1
  937. package/dist/runtime/index.js.map +1 -1
  938. package/dist/runtime/node-picking.d.ts +59 -139
  939. package/dist/runtime/node-picking.d.ts.map +1 -1
  940. package/dist/runtime/node-picking.js +87 -157
  941. package/dist/runtime/node-picking.js.map +1 -1
  942. package/dist/runtime/node-picking3d.d.ts +39 -96
  943. package/dist/runtime/node-picking3d.d.ts.map +1 -1
  944. package/dist/runtime/node-picking3d.js +98 -141
  945. package/dist/runtime/node-picking3d.js.map +1 -1
  946. package/dist/runtime/placement.d.ts +8 -17
  947. package/dist/runtime/placement.d.ts.map +1 -1
  948. package/dist/runtime/placement.js +7 -16
  949. package/dist/runtime/placement.js.map +1 -1
  950. package/dist/runtime/playback-controller.d.ts +78 -207
  951. package/dist/runtime/playback-controller.d.ts.map +1 -1
  952. package/dist/runtime/playback-controller.js +111 -226
  953. package/dist/runtime/playback-controller.js.map +1 -1
  954. package/dist/runtime/playback.d.ts +6 -14
  955. package/dist/runtime/playback.d.ts.map +1 -1
  956. package/dist/runtime/playback.js +6 -14
  957. package/dist/runtime/playback.js.map +1 -1
  958. package/dist/runtime/project-assets.d.ts +6 -14
  959. package/dist/runtime/project-assets.d.ts.map +1 -1
  960. package/dist/runtime/project-assets.js +7 -16
  961. package/dist/runtime/project-assets.js.map +1 -1
  962. package/dist/runtime/session.d.ts +22 -45
  963. package/dist/runtime/session.d.ts.map +1 -1
  964. package/dist/runtime/session.js +26 -46
  965. package/dist/runtime/session.js.map +1 -1
  966. package/dist/runtime/settle.d.ts +4 -10
  967. package/dist/runtime/settle.d.ts.map +1 -1
  968. package/dist/runtime/settle.js +4 -10
  969. package/dist/runtime/settle.js.map +1 -1
  970. package/dist/runtime/state-evaluator.d.ts +15 -37
  971. package/dist/runtime/state-evaluator.d.ts.map +1 -1
  972. package/dist/runtime/state-evaluator.js +27 -44
  973. package/dist/runtime/state-evaluator.js.map +1 -1
  974. package/dist/runtime/text-geometry.d.ts +18 -47
  975. package/dist/runtime/text-geometry.d.ts.map +1 -1
  976. package/dist/runtime/text-geometry.js +13 -27
  977. package/dist/runtime/text-geometry.js.map +1 -1
  978. package/dist/sdk/index.d.ts +1 -7
  979. package/dist/sdk/index.d.ts.map +1 -1
  980. package/dist/sdk/index.js +30 -138
  981. package/dist/sdk/index.js.map +1 -1
  982. package/dist/tween/command-decorator.d.ts +6 -26
  983. package/dist/tween/command-decorator.d.ts.map +1 -1
  984. package/dist/tween/command-decorator.js +1 -6
  985. package/dist/tween/command-decorator.js.map +1 -1
  986. package/dist/tween/command.d.ts +6 -53
  987. package/dist/tween/command.d.ts.map +1 -1
  988. package/dist/tween/command.js +5 -40
  989. package/dist/tween/command.js.map +1 -1
  990. package/dist/tween/ease/curve.d.ts +2 -17
  991. package/dist/tween/ease/curve.d.ts.map +1 -1
  992. package/dist/tween/ease/curve.js +1 -6
  993. package/dist/tween/ease/curve.js.map +1 -1
  994. package/dist/tween/ease/describe.d.ts +0 -11
  995. package/dist/tween/ease/describe.d.ts.map +1 -1
  996. package/dist/tween/ease/describe.js +0 -23
  997. package/dist/tween/ease/describe.js.map +1 -1
  998. package/dist/tween/ease/spec.d.ts +2 -18
  999. package/dist/tween/ease/spec.d.ts.map +1 -1
  1000. package/dist/tween/ease/spec.js.map +1 -1
  1001. package/dist/tween/inert.d.ts +1 -14
  1002. package/dist/tween/inert.d.ts.map +1 -1
  1003. package/dist/tween/inert.js +1 -14
  1004. package/dist/tween/inert.js.map +1 -1
  1005. package/dist/tween/lerp.d.ts +2 -26
  1006. package/dist/tween/lerp.d.ts.map +1 -1
  1007. package/dist/tween/lerp.js +2 -26
  1008. package/dist/tween/lerp.js.map +1 -1
  1009. package/dist/tween/loop.d.ts +9 -50
  1010. package/dist/tween/loop.d.ts.map +1 -1
  1011. package/dist/tween/loop.js +6 -31
  1012. package/dist/tween/loop.js.map +1 -1
  1013. package/dist/tween/prepare.d.ts +2 -30
  1014. package/dist/tween/prepare.d.ts.map +1 -1
  1015. package/dist/tween/prepare.js +2 -30
  1016. package/dist/tween/prepare.js.map +1 -1
  1017. package/dist/tween/stepper.d.ts +4 -25
  1018. package/dist/tween/stepper.d.ts.map +1 -1
  1019. package/dist/tween/stepper.js.map +1 -1
  1020. package/dist/tween/to-command.d.ts +1 -8
  1021. package/dist/tween/to-command.d.ts.map +1 -1
  1022. package/dist/tween/to-command.js +2 -25
  1023. package/dist/tween/to-command.js.map +1 -1
  1024. package/dist/util/context.d.ts +4 -29
  1025. package/dist/util/context.d.ts.map +1 -1
  1026. package/dist/util/context.js +3 -15
  1027. package/dist/util/context.js.map +1 -1
  1028. package/dist/util/csv.d.ts +4 -29
  1029. package/dist/util/csv.d.ts.map +1 -1
  1030. package/dist/util/csv.js +3 -22
  1031. package/dist/util/csv.js.map +1 -1
  1032. package/dist/util/metrics.d.ts +2 -26
  1033. package/dist/util/metrics.d.ts.map +1 -1
  1034. package/dist/util/metrics.js +2 -26
  1035. package/dist/util/metrics.js.map +1 -1
  1036. package/dist/util/random.d.ts +20 -87
  1037. package/dist/util/random.d.ts.map +1 -1
  1038. package/dist/util/random.js +20 -87
  1039. package/dist/util/random.js.map +1 -1
  1040. package/dist/util/reference.d.ts +6 -35
  1041. package/dist/util/reference.d.ts.map +1 -1
  1042. package/dist/util/reference.js +1 -4
  1043. package/dist/util/reference.js.map +1 -1
  1044. package/dist/util/scheduler.d.ts +6 -27
  1045. package/dist/util/scheduler.d.ts.map +1 -1
  1046. package/dist/util/scheduler.js +8 -35
  1047. package/dist/util/scheduler.js.map +1 -1
  1048. package/package.json +1 -1
  1049. package/dist/browser/chunks/chunk-4BDLFEOC.js.map +0 -7
  1050. package/dist/browser/chunks/chunk-CCGVIR4F.js.map +0 -7
  1051. package/dist/browser/chunks/chunk-N4WSN5WY.js +0 -13
  1052. package/dist/browser/chunks/chunk-N4WSN5WY.js.map +0 -7
  1053. package/dist/browser/chunks/chunk-WZSI3GSK.js +0 -6
  1054. package/dist/browser/chunks/chunk-WZSI3GSK.js.map +0 -7
  1055. package/dist/renamed-scene-names.d.ts +0 -17
  1056. package/dist/renamed-scene-names.d.ts.map +0 -1
  1057. package/dist/renamed-scene-names.js +0 -9
  1058. package/dist/renamed-scene-names.js.map +0 -1
  1059. package/dist/runtime/precompisition.d.ts +0 -24
  1060. package/dist/runtime/precompisition.d.ts.map +0 -1
  1061. package/dist/runtime/precompisition.js +0 -7
  1062. package/dist/runtime/precompisition.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"typed.js","sourceRoot":"","sources":["../../../src/attributes/properties/typed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAE3D,OAAO,EAAe,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,EAA0B,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAa,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EACH,aAAa,EAAE,mBAAmB,EAAE,sBAAsB,GAE7D,MAAM,oBAAoB,CAAC;AAuB5B;;;;;;GAMG;AACH,SAAS,iBAAiB,CACtB,QAAmB,EACnB,MAAsC,EACtC,KAAoB;AACpB,+EAA+E;AAC/E,IAAa;IAEb,OAAO,CAAC,IAAyD,EAAE,EAAE,CACjE,QAAQ,CAAW;QACf,OAAO,EAAE,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC9D,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,MAAM;QAC9B,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,KAAK;QAC3B,GAAG,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9D,CAAC,CAAC;AACX,CAAC;AAED,4HAA4H;A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CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,IAAI,EAAE,YAAY,CAClF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAe,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAExH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CACjD,GAAG,EAAE,CAAC,EAAE,EAAE,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,cAAc,CAC1E,CAAC","sourcesContent":["import { TweenFn } from \"@/props/host\";\nimport { property } from \"./decorator\";\n\nimport { type Fill } from \"@/attributes/shape/fill/chain\";\nimport { FillResolved } from \"@/attributes/shape/fill/union\";\nimport { fillOps } from \"@/attributes/shape/fill/registry\";\n\nimport { type Effect, effectsOps } from \"@/attributes/shape/effects/chain\";\nimport { NodeEffect } from \"@/attributes/shape/effects/union\";\n\nimport { Insets, InsetsResolved, insetsOps } from \"@/attributes/layout/insets\";\nimport { Alignment, alignmentOps } from \"@/attributes/layout/alignment\";\nimport { Vector2 } from \"@/attributes/layout/vector2\";\nimport { flowOps } from \"@/layout/ops\";\nimport type { FlowMode, FlowResolved } from \"@/layout/types\";\n\nimport { type AudioEffectsInput } from \"@/attributes/audio/effects/chain\";\nimport { audioEffectsOps } from \"@/attributes/audio/effects/registry\";\nimport { AudioEffect } from \"@/attributes/audio/effects/union\";\nimport { type Param, audioParamOps } from \"@/attributes/audio/ramp\";\n\nimport {\n quaternionOps, lerpOptionalVector3, resolveOptionalVector3,\n type Quaternion, type Vector3, type Vector3Input,\n} from \"@/render3d/vector3\";\n\n/**\n * Attribute-typed variants of `property`, for the props the tree bases declare\n * themselves (`Node2D`, `Node3D`, `NodeAudio`, the root `Canvas2D`).\n *\n * A rich attribute (a fill, an effect chain, an inset) is only declarative and\n * tweenable because its `property` carries the matching *mapper* (loose author\n * input → resolved value) and *tween* (how the resolved value interpolates) —\n * together, an `AttributeOps` (`attributes/shared/operators.ts`). These pre-bake\n * each pair: `fillProperty()` is exactly\n * `property({ default: [], mapper: fillOps.resolve, tween: fillOps.lerp, kind: \"fills\" })`.\n * A component declares the same pairs as state entries (`Types.fill`, …).\n */\ninterface AttributePropOptions<Ext, Int> {\n /** Initial value, used when the constructor `props` object omits the key. */\n default?: Ext;\n /** Override the attribute's built-in external → internal mapper. */\n mapper?: (ext: Ext, prev?: Int) => Int;\n /** Override the attribute's built-in lerp for `to()`. */\n tween?: TweenFn<Int>;\n}\n\n/**\n * Build one attribute-typed `property` from its canonical {@link AttributeOps}.\n *\n * `fallback` is a factory rather than a value so array/object defaults aren't a\n * single instance shared by every property declared through it. An **explicit**\n * `default: undefined` means \"this prop has no default\" and is honoured as such.\n */\nfunction attributeProperty<Ext, Int>(\n fallback: () => Ext,\n mapper?: (ext: Ext, prev?: Int) => Int,\n tween?: TweenFn<Int>,\n /** The control a host draws for this attribute, when it is not the default. */\n kind?: string,\n) {\n return (opts?: AttributePropOptions<Ext, Int> & { kind?: string }) =>\n property<Ext, Int>({\n default: opts && \"default\" in opts ? opts.default : fallback(),\n mapper: opts?.mapper ?? mapper,\n tween: opts?.tween ?? tween,\n ...(opts?.kind ?? kind ? { kind: opts?.kind ?? kind } : {}),\n });\n}\n\n/** A fill-layer property: a CSS string, a fill prop object, a `Fills` chain, or an array of them, lerped layer by layer. */\nexport const fillProperty = attributeProperty<Fill, FillResolved[]>(() => [], fillOps.resolve, fillOps.lerp, \"fills\");\n\n/** An effect-chain property — the `effects` prop's op set. */\nexport const effectsProperty = attributeProperty<Effect, NodeEffect[]>(() => [], effectsOps.resolve, effectsOps.lerp, \"effects\");\n\n/** An edge-inset property: scalar, symmetric or per-edge, tweened per edge. */\nexport const insetsProperty = attributeProperty<Insets, InsetsResolved>(() => 0, insetsOps.resolve, insetsOps.lerp, \"insets\");\n\n/**\n * An alignment property: a named position (`'center'`, `'topLeft'`, …) resolved\n * to a per-axis {@link Vector2} in `[-1, 1]`, tweened as a vector so\n * `'centerLeft' → 'centerRight'` slides.\n */\nexport const alignmentProperty = attributeProperty<Alignment, Vector2>(() => \"center\", alignmentOps.resolve, alignmentOps.lerp, \"alignment\");\n\n/**\n * A layout-mode property. Mid-tween it holds both modes and how far along, so\n * restoring the prop — which is what a seek does — restores the blend with it.\n */\nexport const flowProperty = attributeProperty<FlowMode, FlowResolved>(() => \"freeform\", undefined, flowOps.lerp);\n\n/**\n * A 3D point that may be unset: a node's `lookAt`. It defaults to unset (not to\n * the origin), stays unset when a binding returns `undefined`, and tweens with\n * `to()` — from `unset`'s reading of an unset start (see {@link lerpOptionalVector3}).\n */\nexport function optionalVector3Property(unset: \"origin\" | \"snap\") {\n return property<Vector3Input | undefined, Vector3 | undefined>({\n default: undefined,\n mapper: resolveOptionalVector3,\n tween: (from, to, t) => lerpOptionalVector3(from, to, t, unset),\n kind: \"vector3\",\n });\n}\n\n/** A rotation as a unit quaternion, interpolated with shortest-arc slerp. */\nexport const quaternionProperty = attributeProperty<Quaternion, Quaternion>(\n () => ({ x: 0, y: 0, z: 0, w: 1 }), undefined, quaternionOps.lerp, \"quaternion\",\n);\n\n/**\n * An audio level — a gain, a pan position, anything a clip or a bus schedules.\n *\n * `Param`, not `number`, because an `AudioRequest` is a schedule record built\n * once during precomp: a per-frame prop write would be read on whichever frame\n * happened to create the request and then never again. A `Ramp` *is* the\n * automation lane, which is why the tween interpolates between whole ramps.\n */\nexport const audioParamProperty = attributeProperty<Param, Param>(() => 0, undefined, audioParamOps.lerp, \"audioParam\");\n\n/**\n * An audio effect chain — the `effects` prop's op set.\n *\n * Without it a chain is an object-valued prop, and `Node._prepareStep` drops\n * those silently: the tween would run its duration and write nothing.\n */\nexport const audioEffectsProperty = attributeProperty<AudioEffectsInput, AudioEffect[]>(\n () => [], audioEffectsOps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SAAS,EAAE,aAAa,CAAC,IAAI,EAAE,YAAY,CAClF,CAAC;AAEF,oRAAoR;AACpR,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAe,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAExH,6KAA6K;AAC7K,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CACjD,GAAG,EAAE,CAAC,EAAE,EAAE,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,cAAc,CAC1E,CAAC","sourcesContent":["import { TweenFn } from \"@/props/host\";\nimport { property } from \"./decorator\";\n\nimport { type Fill } from \"@/attributes/shape/fill/chain\";\nimport { FillResolved } from \"@/attributes/shape/fill/union\";\nimport { fillOps } from \"@/attributes/shape/fill/registry\";\n\nimport { type Effect, effectsOps } from \"@/attributes/shape/effects/chain\";\nimport { NodeEffect } from \"@/attributes/shape/effects/union\";\n\nimport { Insets, InsetsResolved, insetsOps } from \"@/attributes/layout/insets\";\nimport { Alignment, alignmentOps } from \"@/attributes/layout/alignment\";\nimport { Vector2 } from \"@/attributes/layout/vector2\";\nimport { flowOps } from \"@/layout/ops\";\nimport type { FlowMode, FlowResolved } from \"@/layout/types\";\n\nimport { type AudioEffectsInput } from \"@/attributes/audio/effects/chain\";\nimport { audioEffectsOps } from \"@/attributes/audio/effects/registry\";\nimport { AudioEffect } from \"@/attributes/audio/effects/union\";\nimport { type Param, audioParamOps } from \"@/attributes/audio/ramp\";\n\nimport {\n quaternionOps, lerpOptionalVector3, resolveOptionalVector3,\n type Quaternion, type Vector3, type Vector3Input,\n} from \"@/render3d/vector3\";\n\n/** Attribute-typed variants of `property` for the props the tree bases declare themselves. A rich attribute is only declarative and tweenable because its `property` carries the matching *mapper* (loose input → resolved) and *tween*, together an `AttributeOps`; these pre-bake each pair (`fillProperty()` is `property({ default: [], mapper: fillOps.resolve, tween: fillOps.lerp, kind: \"fills\" })`). */\ninterface AttributePropOptions<Ext, Int> {\n default?: Ext;\n mapper?: (ext: Ext, prev?: Int) => Int;\n tween?: TweenFn<Int>;\n}\n\n/** Builds one attribute-typed `property` from its {@link AttributeOps}. `fallback` is a factory so array/object defaults aren't one instance shared by every property; an **explicit** `default: undefined` means \"no default\" and is honoured. */\nfunction attributeProperty<Ext, Int>(\n fallback: () => Ext,\n mapper?: (ext: Ext, prev?: Int) => Int,\n tween?: TweenFn<Int>,\n /** The control a host draws for this attribute, when it is not the default. */\n kind?: string,\n) {\n return (opts?: AttributePropOptions<Ext, Int> & { kind?: string }) =>\n property<Ext, Int>({\n default: opts && \"default\" in opts ? opts.default : fallback(),\n mapper: opts?.mapper ?? mapper,\n tween: opts?.tween ?? tween,\n ...(opts?.kind ?? kind ? { kind: opts?.kind ?? kind } : {}),\n });\n}\n\n/** A fill-layer property: a CSS string, a fill prop object, a `Fills` chain, or an array of them, lerped layer by layer. */\nexport const fillProperty = attributeProperty<Fill, FillResolved[]>(() => [], fillOps.resolve, fillOps.lerp, \"fills\");\n\nexport const effectsProperty = attributeProperty<Effect, NodeEffect[]>(() => [], effectsOps.resolve, effectsOps.lerp, \"effects\");\n\nexport const insetsProperty = attributeProperty<Insets, InsetsResolved>(() => 0, insetsOps.resolve, insetsOps.lerp, \"insets\");\n\n/** A named position (`'center'`, …) resolved to a {@link Vector2} in `[-1, 1]` and tweened as a vector, so `'centerLeft' → 'centerRight'` slides. */\nexport const alignmentProperty = attributeProperty<Alignment, Vector2>(() => \"center\", alignmentOps.resolve, alignmentOps.lerp, \"alignment\");\n\n/** Mid-tween it holds both modes and how far along, so a seek restoring the prop restores the blend. */\nexport const flowProperty = attributeProperty<FlowMode, FlowResolved>(() => \"freeform\", undefined, flowOps.lerp);\n\n/** A 3D point that may be unset (a node's `lookAt`): defaults to unset rather than the origin, stays unset when a binding returns `undefined`, and tweens from `unset`'s reading of an unset start (see {@link lerpOptionalVector3}). */\nexport function optionalVector3Property(unset: \"origin\" | \"snap\") {\n return property<Vector3Input | undefined, Vector3 | undefined>({\n default: undefined,\n mapper: resolveOptionalVector3,\n tween: (from, to, t) => lerpOptionalVector3(from, to, t, unset),\n kind: \"vector3\",\n });\n}\n\n/** A rotation as a unit quaternion, interpolated with shortest-arc slerp. */\nexport const quaternionProperty = attributeProperty<Quaternion, Quaternion>(\n () => ({ x: 0, y: 0, z: 0, w: 1 }), undefined, quaternionOps.lerp, \"quaternion\",\n);\n\n/** An audio level (gain, pan). A `Param`, not a `number`, because an `AudioRequest` is a schedule record built once during precomp: a per-frame prop write would be read on one frame and never again. A `Ramp` *is* the automation lane, so the tween interpolates whole ramps. */\nexport const audioParamProperty = attributeProperty<Param, Param>(() => 0, undefined, audioParamOps.lerp, \"audioParam\");\n\n/** An audio effect chain. Without it the chain is an object-valued prop and `Node._prepareStep` silently drops those: the tween would run its duration and write nothing. */\nexport const audioEffectsProperty = attributeProperty<AudioEffectsInput, AudioEffect[]>(\n () => [], audioEffectsOps.resolve, audioEffectsOps.lerp, \"audioEffects\",\n);\n"]}
@@ -1,49 +1,15 @@
1
- /**
2
- * The vocabulary of an orbit camera, and the lerps a 3D component tweens with.
3
- *
4
- * Unrelated node types are flown by one — a globe, a surface plot — and they
5
- * are unrelated on purpose: what they share is a camera, not a subject. So this
6
- * belongs to none of them, and a package per subject would either duplicate it
7
- * or make one depend on another.
8
- */
1
+ /** The vocabulary of an orbit camera and the lerps a 3D component tweens with. Shared by unrelated node types (a globe, a surface plot) that have a camera, not a subject, in common, so it belongs to none of them. */
9
2
  import { type Color, type NormalizedColor } from "../../attributes/shape/fill/color/parser.js";
10
3
  import type { Vector3 } from "../../render3d/vector3.js";
11
- /**
12
- * Mapper: any {@link Color} → a normalized RGBA tuple.
13
- *
14
- * Resolving at *write* time rather than at draw time is the point. A tuple can
15
- * be interpolated channel by channel; `"#3B82F6"` cannot, and re-parsing a
16
- * string per frame would be wasted work besides. The tuple is still a valid
17
- * `Color`, so it goes straight back to `Graphics3D` with no conversion.
18
- */
4
+ /** Mapper: any {@link Color} to a normalized RGBA tuple. Resolved at *write* time because a tuple interpolates per channel while `"#3B82F6"` cannot; the tuple is still a valid `Color`. */
19
5
  export declare function resolveColor3D(value: Color): NormalizedColor;
20
6
  /** Tween: per-channel interpolation of two resolved colours. */
21
7
  export declare function lerpColor3D(from: NormalizedColor, to: NormalizedColor, t: number): NormalizedColor;
22
- /**
23
- * Interpolates two numbers, tolerating non-finite endpoints.
24
- *
25
- * A resolved options bag can legitimately hold `Infinity` (an unset `maxZoom`
26
- * means "no ceiling"), and the plain form would produce `NaN` from
27
- * `Infinity + (Infinity - Infinity) * t`. Non-finite endpoints hold `from` and
28
- * switch at the end instead.
29
- */
8
+ /** Interpolates two numbers, tolerating non-finite endpoints: a resolved options bag can hold `Infinity` (unset `maxZoom` = no ceiling) and the plain form yields `NaN`. Non-finite endpoints hold `from` and switch at the end. */
30
9
  export declare function lerpFinite(from: number, to: number, t: number): number;
31
- /**
32
- * Interpolates a value that indexes geometry — a segment or division count.
33
- * Rounded, because a fractional count is meaningless to the loops that consume
34
- * it.
35
- */
10
+ /** Interpolates a geometry-indexing value (segment or division count), rounded since a fractional count is meaningless to its loops. */
36
11
  export declare function lerpCount(from: number, to: number, t: number): number;
37
- /**
38
- * Tweens a value that has no in-between — a flag, a representation, a colour
39
- * scheme — by holding `from` until the tween lands.
40
- *
41
- * There is no halfway point between a wireframe and a solid surface, and a
42
- * mid-tween flip reads as a glitch rather than a transition, so the switch
43
- * happens once at the end. Snapping at the *midpoint* would be worse still: the
44
- * change would land while the command was still running, so a `to` would appear
45
- * to finish early.
46
- */
12
+ /** Tweens a value with no in-between (a flag, a representation) by holding `from` until the tween lands. A mid-tween flip reads as a glitch, and snapping at the *midpoint* would land the change while the command still ran. */
47
13
  export declare function snapValue<T>(from: T, to: T, t: number): T;
48
14
  /** {@link snapValue}, narrowed to a boolean where that is all a caller has. */
49
15
  export declare const snapFlag: (from: boolean, to: boolean, t: number) => boolean;
@@ -57,45 +23,14 @@ export interface Orbit {
57
23
  distance: number;
58
24
  }
59
25
  /**
60
- * A stored `orbit` in the camera's own terms.
61
- *
62
- * The engine's camera takes `orbit`/`elevation`/`distance` directly now,
63
- * which is what these nodes always wanted — but the two conventions disagree
64
- * about zero: a stored `orbit` here is measured from **+X**, and the camera
65
- * measures from **+Z** (head-on). A quarter turn separates them.
66
- *
67
- * Converting at this one seam is what keeps every document that already holds an
68
- * `orbit` value framed exactly as it was. Redefining the stored field instead
69
- * would silently rotate every saved 3D scene by ninety degrees, which is not a
70
- * change a scene can notice or a reader can debug.
26
+ * A stored `orbit` in the camera's own terms. A stored `orbit` is measured from **+X** and the camera's from **+Z**
27
+ * (head-on): a quarter turn apart. Converting at this one seam keeps every existing document framed exactly as it
28
+ * was; redefining the stored field would silently rotate every saved 3D scene by ninety degrees.
71
29
  */
72
30
  export declare function cameraOrbit(orbit: number): number;
73
- /**
74
- * The Cartesian position for a spherical camera placement.
75
- *
76
- * Spherical is the useful parameterisation for a timeline: each of the three
77
- * numbers is independently tweenable and means something an author can reason
78
- * about, whereas tweening a raw `[x, y, z]` couples "spin" and "pull back"
79
- * together and cuts a chord through the sphere on the way.
80
- *
81
- * The **camera** no longer goes through this: it takes the three numbers itself
82
- * (see {@link cameraOrbit}), so converting to a position and back was one more
83
- * place for the two conventions to drift. What is left is placing something
84
- * *else* spherically — a light on an arc, a marker ring.
85
- */
31
+ /** The Cartesian position for a spherical placement. Spherical suits a timeline: each number tweens independently, where a raw `[x, y, z]` couples "spin" and "pull back" and cuts a chord through the sphere. The camera takes the three numbers itself (see {@link cameraOrbit}); this places something *else* spherically (a light, a marker ring). */
86
32
  export declare function orbitPosition({ orbit, elevation, distance }: Orbit): Vector3;
87
- /**
88
- * A camera placement to move *to*, with every axis optional.
89
- *
90
- * The argument `orbitTo` takes, shared by every node that frames a 3D scene
91
- * spherically — a globe, a surface plot. One object rather than
92
- * three positional numbers because the common edit is one axis: "pull back" and
93
- * "spin round" are separate intentions, and a positional form would make each
94
- * of them restate the two it does not mean.
95
- *
96
- * `zoom` rather than {@link Orbit}'s `distance`, because that is what these
97
- * nodes call the prop.
98
- */
33
+ /** A camera placement to move *to*, every axis optional: the argument of `orbitTo`. An object rather than positional numbers because the common edit is one axis. `zoom` rather than {@link Orbit}'s `distance`, the nodes' prop name. */
99
34
  export interface OrbitTarget {
100
35
  /** Angle about the vertical axis, in degrees. */
101
36
  orbit?: number;
@@ -104,13 +39,6 @@ export interface OrbitTarget {
104
39
  /** Distance from the target. */
105
40
  zoom?: number;
106
41
  }
107
- /**
108
- * `target` as props to write, with the axes it does not name left out.
109
- *
110
- * Omitted rather than passed as `undefined`: a tween reads its `from` off the
111
- * node when the command is built, and handing it an explicit `undefined`
112
- * destination would interpolate towards `NaN` rather than leaving the axis
113
- * alone.
114
- */
42
+ /** `target` as props to write, omitting axes it does not name: an explicit `undefined` destination would tween towards `NaN`. */
115
43
  export declare function orbitProps(target: OrbitTarget): Record<string, number>;
116
44
  //# sourceMappingURL=orbit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orbit.d.ts","sourceRoot":"","sources":["../../../src/attributes/render3d/orbit.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,eAAe,EACrB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAIjD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,eAAe,CAE5D;AAED,gEAAgE;AAChE,wBAAgB,WAAW,CACzB,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,eAAe,EACnB,CAAC,EAAE,MAAM,GACR,eAAe,CAOjB;AAID;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED;;;;GAIG;AACH,wB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jD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,iIAAiI;AACjI,wBAAgB,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMtE"}
@@ -1,21 +1,6 @@
1
- /**
2
- * The vocabulary of an orbit camera, and the lerps a 3D component tweens with.
3
- *
4
- * Unrelated node types are flown by one — a globe, a surface plot — and they
5
- * are unrelated on purpose: what they share is a camera, not a subject. So this
6
- * belongs to none of them, and a package per subject would either duplicate it
7
- * or make one depend on another.
8
- */
1
+ /** The vocabulary of an orbit camera and the lerps a 3D component tweens with. Shared by unrelated node types (a globe, a surface plot) that have a camera, not a subject, in common, so it belongs to none of them. */
9
2
  import { parseColor, } from "../../attributes/shape/fill/color/parser.js";
10
- // --- Colour ----------------------------------------------------------------
11
- /**
12
- * Mapper: any {@link Color} → a normalized RGBA tuple.
13
- *
14
- * Resolving at *write* time rather than at draw time is the point. A tuple can
15
- * be interpolated channel by channel; `"#3B82F6"` cannot, and re-parsing a
16
- * string per frame would be wasted work besides. The tuple is still a valid
17
- * `Color`, so it goes straight back to `Graphics3D` with no conversion.
18
- */
3
+ /** Mapper: any {@link Color} to a normalized RGBA tuple. Resolved at *write* time because a tuple interpolates per channel while `"#3B82F6"` cannot; the tuple is still a valid `Color`. */
19
4
  export function resolveColor3D(value) {
20
5
  return typeof value === "string" ? parseColor(value) : value;
21
6
  }
@@ -28,72 +13,31 @@ export function lerpColor3D(from, to, t) {
28
13
  from[3] + (to[3] - from[3]) * t,
29
14
  ];
30
15
  }
31
- // --- Numbers ---------------------------------------------------------------
32
- /**
33
- * Interpolates two numbers, tolerating non-finite endpoints.
34
- *
35
- * A resolved options bag can legitimately hold `Infinity` (an unset `maxZoom`
36
- * means "no ceiling"), and the plain form would produce `NaN` from
37
- * `Infinity + (Infinity - Infinity) * t`. Non-finite endpoints hold `from` and
38
- * switch at the end instead.
39
- */
16
+ /** Interpolates two numbers, tolerating non-finite endpoints: a resolved options bag can hold `Infinity` (unset `maxZoom` = no ceiling) and the plain form yields `NaN`. Non-finite endpoints hold `from` and switch at the end. */
40
17
  export function lerpFinite(from, to, t) {
41
18
  if (!Number.isFinite(from) || !Number.isFinite(to))
42
19
  return t < 1 ? from : to;
43
20
  return from + (to - from) * t;
44
21
  }
45
- /**
46
- * Interpolates a value that indexes geometry — a segment or division count.
47
- * Rounded, because a fractional count is meaningless to the loops that consume
48
- * it.
49
- */
22
+ /** Interpolates a geometry-indexing value (segment or division count), rounded since a fractional count is meaningless to its loops. */
50
23
  export function lerpCount(from, to, t) {
51
24
  return Math.round(from + (to - from) * t);
52
25
  }
53
- /**
54
- * Tweens a value that has no in-between — a flag, a representation, a colour
55
- * scheme — by holding `from` until the tween lands.
56
- *
57
- * There is no halfway point between a wireframe and a solid surface, and a
58
- * mid-tween flip reads as a glitch rather than a transition, so the switch
59
- * happens once at the end. Snapping at the *midpoint* would be worse still: the
60
- * change would land while the command was still running, so a `to` would appear
61
- * to finish early.
62
- */
26
+ /** Tweens a value with no in-between (a flag, a representation) by holding `from` until the tween lands. A mid-tween flip reads as a glitch, and snapping at the *midpoint* would land the change while the command still ran. */
63
27
  export function snapValue(from, to, t) {
64
28
  return t < 1 ? from : to;
65
29
  }
66
30
  /** {@link snapValue}, narrowed to a boolean where that is all a caller has. */
67
31
  export const snapFlag = snapValue;
68
32
  /**
69
- * A stored `orbit` in the camera's own terms.
70
- *
71
- * The engine's camera takes `orbit`/`elevation`/`distance` directly now,
72
- * which is what these nodes always wanted — but the two conventions disagree
73
- * about zero: a stored `orbit` here is measured from **+X**, and the camera
74
- * measures from **+Z** (head-on). A quarter turn separates them.
75
- *
76
- * Converting at this one seam is what keeps every document that already holds an
77
- * `orbit` value framed exactly as it was. Redefining the stored field instead
78
- * would silently rotate every saved 3D scene by ninety degrees, which is not a
79
- * change a scene can notice or a reader can debug.
33
+ * A stored `orbit` in the camera's own terms. A stored `orbit` is measured from **+X** and the camera's from **+Z**
34
+ * (head-on): a quarter turn apart. Converting at this one seam keeps every existing document framed exactly as it
35
+ * was; redefining the stored field would silently rotate every saved 3D scene by ninety degrees.
80
36
  */
81
37
  export function cameraOrbit(orbit) {
82
38
  return 90 - orbit;
83
39
  }
84
- /**
85
- * The Cartesian position for a spherical camera placement.
86
- *
87
- * Spherical is the useful parameterisation for a timeline: each of the three
88
- * numbers is independently tweenable and means something an author can reason
89
- * about, whereas tweening a raw `[x, y, z]` couples "spin" and "pull back"
90
- * together and cuts a chord through the sphere on the way.
91
- *
92
- * The **camera** no longer goes through this: it takes the three numbers itself
93
- * (see {@link cameraOrbit}), so converting to a position and back was one more
94
- * place for the two conventions to drift. What is left is placing something
95
- * *else* spherically — a light on an arc, a marker ring.
96
- */
40
+ /** The Cartesian position for a spherical placement. Spherical suits a timeline: each number tweens independently, where a raw `[x, y, z]` couples "spin" and "pull back" and cuts a chord through the sphere. The camera takes the three numbers itself (see {@link cameraOrbit}); this places something *else* spherically (a light, a marker ring). */
97
41
  export function orbitPosition({ orbit, elevation, distance }) {
98
42
  const orbitRad = orbit * (Math.PI / 180);
99
43
  const elevationRad = elevation * (Math.PI / 180);
@@ -104,14 +48,7 @@ export function orbitPosition({ orbit, elevation, distance }) {
104
48
  z: Math.sin(orbitRad) * horizontal,
105
49
  };
106
50
  }
107
- /**
108
- * `target` as props to write, with the axes it does not name left out.
109
- *
110
- * Omitted rather than passed as `undefined`: a tween reads its `from` off the
111
- * node when the command is built, and handing it an explicit `undefined`
112
- * destination would interpolate towards `NaN` rather than leaving the axis
113
- * alone.
114
- */
51
+ /** `target` as props to write, omitting axes it does not name: an explicit `undefined` destination would tween towards `NaN`. */
115
52
  export function orbitProps(target) {
116
53
  const props = {};
117
54
  if (target.orbit !== undefined)
@@ -1 +1 @@
1
- {"version":3,"file":"orbit.js","sourceRoot":"","sources":["../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AAM,CAAC,KAAK,KAAK,SAAS;QAAE,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;IAC1D,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS;QAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;IACtE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;IACvD,OAAO,KAAK,CAAA;AAChB,CAAC","sourcesContent":["/**\n * The vocabulary of an orbit camera, and the lerps a 3D component tweens with.\n *\n * Unrelated node types are flown by one — a globe, a surface plot — and they\n * are unrelated on purpose: what they share is a camera, not a subject. So this\n * belongs to none of them, and a package per subject would either duplicate it\n * or make one depend on another.\n */\nimport {\n parseColor,\n type Color,\n type NormalizedColor,\n} from \"@/attributes/shape/fill/color/parser\"\nimport type { Vector3 } from \"@/render3d/vector3\"\n\n// --- Colour ----------------------------------------------------------------\n\n/**\n * Mapper: any {@link Color} → a normalized RGBA tuple.\n *\n * Resolving at *write* time rather than at draw time is the point. A tuple can\n * be interpolated channel by channel; `\"#3B82F6\"` cannot, and re-parsing a\n * string per frame would be wasted work besides. The tuple is still a valid\n * `Color`, so it goes straight back to `Graphics3D` with no conversion.\n */\nexport function resolveColor3D(value: Color): NormalizedColor {\n return typeof value === \"string\" ? parseColor(value) : value\n}\n\n/** Tween: per-channel interpolation of two resolved colours. */\nexport function lerpColor3D(\n from: NormalizedColor,\n to: NormalizedColor,\n t: number\n): NormalizedColor {\n return [\n from[0] + (to[0] - from[0]) * t,\n from[1] + (to[1] - from[1]) * t,\n from[2] + (to[2] - from[2]) * t,\n from[3] + (to[3] - from[3]) * t,\n ]\n}\n\n// --- Numbers ---------------------------------------------------------------\n\n/**\n * Interpolates two numbers, tolerating non-finite endpoints.\n *\n * A resolved options bag can legitimately hold `Infinity` (an unset `maxZoom`\n * means \"no ceiling\"), and the plain form would produce `NaN` from\n * `Infinity + (Infinity - Infinity) * t`. Non-finite endpoints hold `from` and\n * switch at the end instead.\n */\nexport function lerpFinite(from: number, to: number, t: number): number {\n if (!Number.isFinite(from) || !Number.isFinite(to)) return t < 1 ? from : to\n return from + (to - from) * t\n}\n\n/**\n * Interpolates a value that indexes geometry — a segment or division count.\n * Rounded, because a fractional count is meaningless to the loops that consume\n * it.\n */\nexport function lerpCount(from: number, to: number, t: number): number {\n return Math.round(from + (to - from) * t)\n}\n\n/**\n * Tweens a value that has no in-between — a flag, a representation, a colour\n * scheme — by holding `from` until the tween lands.\n *\n * There is no halfway point between a wireframe and a solid surface, and a\n * mid-tween flip reads as a glitch rather than a transition, so the switch\n * happens once at the end. Snapping at the *midpoint* would be worse still: the\n * change would land while the command was still running, so a `to` would appear\n * to finish early.\n */\nexport function snapValue<T>(from: T, to: T, t: number): T {\n return t < 1 ? from : to\n}\n\n/** {@link snapValue}, narrowed to a boolean where that is all a caller has. */\nexport const snapFlag: (from: boolean, to: boolean, t: number) => boolean =\n snapValue\n\n// --- Camera ----------------------------------------------------------------\n\n/** A camera placement in spherical terms — what `orbit`/`elevation`/`zoom` hold. */\nexport interface Orbit {\n /** Angle about the vertical axis, in **degrees**. */\n orbit: number\n /** Angle above the ground plane, in **degrees**. 0 is edge-on, 90 straight down. */\n elevation: number\n /** Distance from the target. */\n distance: number\n}\n\n/**\n * A stored `orbit` in the camera's own terms.\n *\n * The engine's camera takes `orbit`/`elevation`/`distance` directly now,\n * which is what these nodes always wanted — but the two conventions disagree\n * about zero: a stored `orbit` here is measured from **+X**, and the camera\n * measures from **+Z** (head-on). A quarter turn separates them.\n *\n * Converting at this one seam is what keeps every document that already holds an\n * `orbit` value framed exactly as it was. Redefining the stored field instead\n * would silently rotate every saved 3D scene by ninety degrees, which is not a\n * change a scene can notice or a reader can debug.\n */\nexport function cameraOrbit(orbit: number): number {\n return 90 - orbit\n}\n\n/**\n * The Cartesian position for a spherical camera placement.\n *\n * Spherical is the useful parameterisation for a timeline: each of the three\n * numbers is independently tweenable and means something an author can reason\n * about, whereas tweening a raw `[x, y, z]` couples \"spin\" and \"pull back\"\n * together and cuts a chord through the sphere on the way.\n *\n * The **camera** no longer goes through this: it takes the three numbers itself\n * (see {@link cameraOrbit}), so converting to a position and back was one more\n * place for the two conventions to drift. What is left is placing something\n * *else* spherically — a light on an arc, a marker ring.\n */\nexport function orbitPosition({ orbit, elevation, distance }: Orbit): Vector3 {\n const orbitRad = orbit * (Math.PI / 180)\n const elevationRad = elevation * (Math.PI / 180)\n const horizontal = Math.cos(elevationRad) * distance\n return {\n x: Math.cos(orbitRad) * horizontal,\n y: Math.sin(elevationRad) * distance,\n z: Math.sin(orbitRad) * horizontal,\n }\n}\n\n/**\n * A camera placement to move *to*, with every axis optional.\n *\n * The argument `orbitTo` takes, shared by every node that frames a 3D scene\n * spherically — a globe, a surface plot. One object rather than\n * three positional numbers because the common edit is one axis: \"pull back\" and\n * \"spin round\" are separate intentions, and a positional form would make each\n * of them restate the two it does not mean.\n *\n * `zoom` rather than {@link Orbit}'s `distance`, because that is what these\n * nodes call the prop.\n */\nexport interface OrbitTarget {\n /** Angle about the vertical axis, in degrees. */\n orbit?: number\n /** Angle above the ground plane, in degrees. */\n elevation?: number\n /** Distance from the target. */\n zoom?: number\n}\n\n/**\n * `target` as props to write, with the axes it does not name left out.\n *\n * Omitted rather than passed as `undefined`: a tween reads its `from` off the\n * node when the command is built, and handing it an explicit `undefined`\n * destination would interpolate towards `NaN` rather than leaving the axis\n * alone.\n */\nexport function orbitProps(target: OrbitTarget): Record<string, number> {\n const props: Record<string, number> = {}\n if (target.orbit !== undefined) props.orbit = target.orbit\n if (target.elevation !== undefined) props.elevation = target.elevation\n if (target.zoom !== undefined) props.zoom = target.zoom\n return props\n}\n"]}
1
+ {"version":3,"file":"orbit.js","sourceRoot":"","sources":["../../../src/attributes/render3d/orbit.ts"],"names":[],"mappings":"AAAA,wNAAwN;AACxN,OAAO,EACL,UAAU,GAGX,MAAM,sCAAsC,CAAA;AAG7C,4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A;IACtE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;IACvD,OAAO,KAAK,CAAA;AAChB,CAAC","sourcesContent":["/** The vocabulary of an orbit camera and the lerps a 3D component tweens with. Shared by unrelated node types (a globe, a surface plot) that have a camera, not a subject, in common, so it belongs to none of them. */\nimport {\n parseColor,\n type Color,\n type NormalizedColor,\n} from \"@/attributes/shape/fill/color/parser\"\nimport type { Vector3 } from \"@/render3d/vector3\"\n\n/** Mapper: any {@link Color} to a normalized RGBA tuple. Resolved at *write* time because a tuple interpolates per channel while `\"#3B82F6\"` cannot; the tuple is still a valid `Color`. */\nexport function resolveColor3D(value: Color): NormalizedColor {\n return typeof value === \"string\" ? parseColor(value) : value\n}\n\n/** Tween: per-channel interpolation of two resolved colours. */\nexport function lerpColor3D(\n from: NormalizedColor,\n to: NormalizedColor,\n t: number\n): NormalizedColor {\n return [\n from[0] + (to[0] - from[0]) * t,\n from[1] + (to[1] - from[1]) * t,\n from[2] + (to[2] - from[2]) * t,\n from[3] + (to[3] - from[3]) * t,\n ]\n}\n\n/** Interpolates two numbers, tolerating non-finite endpoints: a resolved options bag can hold `Infinity` (unset `maxZoom` = no ceiling) and the plain form yields `NaN`. Non-finite endpoints hold `from` and switch at the end. */\nexport function lerpFinite(from: number, to: number, t: number): number {\n if (!Number.isFinite(from) || !Number.isFinite(to)) return t < 1 ? from : to\n return from + (to - from) * t\n}\n\n/** Interpolates a geometry-indexing value (segment or division count), rounded since a fractional count is meaningless to its loops. */\nexport function lerpCount(from: number, to: number, t: number): number {\n return Math.round(from + (to - from) * t)\n}\n\n/** Tweens a value with no in-between (a flag, a representation) by holding `from` until the tween lands. A mid-tween flip reads as a glitch, and snapping at the *midpoint* would land the change while the command still ran. */\nexport function snapValue<T>(from: T, to: T, t: number): T {\n return t < 1 ? from : to\n}\n\n/** {@link snapValue}, narrowed to a boolean where that is all a caller has. */\nexport const snapFlag: (from: boolean, to: boolean, t: number) => boolean =\n snapValue\n\n/** A camera placement in spherical terms — what `orbit`/`elevation`/`zoom` hold. */\nexport interface Orbit {\n /** Angle about the vertical axis, in **degrees**. */\n orbit: number\n /** Angle above the ground plane, in **degrees**. 0 is edge-on, 90 straight down. */\n elevation: number\n /** Distance from the target. */\n distance: number\n}\n\n/**\n * A stored `orbit` in the camera's own terms. A stored `orbit` is measured from **+X** and the camera's from **+Z**\n * (head-on): a quarter turn apart. Converting at this one seam keeps every existing document framed exactly as it\n * was; redefining the stored field would silently rotate every saved 3D scene by ninety degrees.\n */\nexport function cameraOrbit(orbit: number): number {\n return 90 - orbit\n}\n\n/** The Cartesian position for a spherical placement. Spherical suits a timeline: each number tweens independently, where a raw `[x, y, z]` couples \"spin\" and \"pull back\" and cuts a chord through the sphere. The camera takes the three numbers itself (see {@link cameraOrbit}); this places something *else* spherically (a light, a marker ring). */\nexport function orbitPosition({ orbit, elevation, distance }: Orbit): Vector3 {\n const orbitRad = orbit * (Math.PI / 180)\n const elevationRad = elevation * (Math.PI / 180)\n const horizontal = Math.cos(elevationRad) * distance\n return {\n x: Math.cos(orbitRad) * horizontal,\n y: Math.sin(elevationRad) * distance,\n z: Math.sin(orbitRad) * horizontal,\n }\n}\n\n/** A camera placement to move *to*, every axis optional: the argument of `orbitTo`. An object rather than positional numbers because the common edit is one axis. `zoom` rather than {@link Orbit}'s `distance`, the nodes' prop name. */\nexport interface OrbitTarget {\n /** Angle about the vertical axis, in degrees. */\n orbit?: number\n /** Angle above the ground plane, in degrees. */\n elevation?: number\n /** Distance from the target. */\n zoom?: number\n}\n\n/** `target` as props to write, omitting axes it does not name: an explicit `undefined` destination would tween towards `NaN`. */\nexport function orbitProps(target: OrbitTarget): Record<string, number> {\n const props: Record<string, number> = {}\n if (target.orbit !== undefined) props.orbit = target.orbit\n if (target.elevation !== undefined) props.elevation = target.elevation\n if (target.zoom !== undefined) props.zoom = target.zoom\n return props\n}\n"]}
@@ -2,12 +2,7 @@ import type { CornerRadiusOps } from "../../../attributes/shared/operators.js";
2
2
  import { Corners, CornersInput } from "./corners.js";
3
3
  /** Per-corner border radius values, all fully resolved to numbers. */
4
4
  export type CornerRadiusResolved = Corners<number>;
5
- /**
6
- * Accepted corner radius input for a Rect: a single number applies uniformly to
7
- * all corners; an object overrides corners individually (`{ topLeft, … }`) or by
8
- * axis (`{ top, bottom }` / `{ left, right }`). An already-resolved value passes
9
- * through. Unspecified corners fall back to a previous value or 0 when resolved.
10
- */
5
+ /** Corner radius input for a Rect: one number for all corners, or an object per corner (`{ topLeft, … }`) or axis (`{ top, bottom }` / `{ left, right }`); an already-resolved value passes through. Unspecified corners fall back to a previous value or 0. */
11
6
  export type RectCornerRadius = CornersInput<number> | CornerRadiusResolved;
12
7
  /**
13
8
  * The corner-radius attribute's op set: `resolve`/`lerp` for `Shapes.corners`,
@@ -1 +1 @@
1
- {"version":3,"file":"corner-radius.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-radius.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAiD,MAAM,WAAW,CAAC;AAEjG,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,eAQ7B,CAAC"}
1
+ {"version":3,"file":"corner-radius.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-radius.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAiD,MAAM,WAAW,CAAC;AAEjG,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAEnD,gQAAgQ;AAChQ,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,eAQ7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"corner-radius.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-radius.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAyB,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAajG;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC5C,6EAA6E;IAC7E,qEAAqE;IACrE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,KAA6B,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;IACnI,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,UAAU,CAAC;IAC3D,cAAc,EAAE,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ;IACrE,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC;IAC7C,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,KAAK,CAAC;CACtH,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { CornerRadiusOps } from \"@/attributes/shared/operators\";\nimport { Corners, CornersInput, resolveCorners, lerpCorners, isUniformCorners } from \"./corners\";\n\n/** Per-corner border radius values, all fully resolved to numbers. */\nexport type CornerRadiusResolved = Corners<number>;\n\n/**\n * Accepted corner radius input for a Rect: a single number applies uniformly to\n * all corners; an object overrides corners individually (`{ topLeft, … }`) or by\n * axis (`{ top, bottom }` / `{ left, right }`). An already-resolved value passes\n * through. Unspecified corners fall back to a previous value or 0 when resolved.\n */\nexport type RectCornerRadius = CornersInput<number> | CornerRadiusResolved;\n\n/**\n * The corner-radius attribute's op set: `resolve`/`lerp` for `Shapes.corners`,\n * plus the uniform/zero checks a renderer needs to pick a cheap draw path.\n */\nexport const cornerRadiusOps: CornerRadiusOps = {\n // A resolved value is structurally a full per-corner `CornersInput<number>`,\n // so pin T=number and let resolveCorners re-resolve it idempotently.\n resolve: (value, previous) => resolveCorners(value as CornersInput<number>, 0, previous, (v): v is number => typeof v === \"number\"),\n lerp: (from, to, t) => lerpCorners(from, to, t, lerpNumber),\n isUniformInput: (value): value is number => typeof value === \"number\",\n isUniform: (value) => isUniformCorners(value),\n isZero: (value) => value.topLeft === 0 && value.topRight === 0 && value.bottomLeft === 0 && value.bottomRight === 0,\n};\n"]}
1
+ {"version":3,"file":"corner-radius.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-radius.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAyB,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAQjG;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC5C,6EAA6E;IAC7E,qEAAqE;IACrE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,KAA6B,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;IACnI,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,UAAU,CAAC;IAC3D,cAAc,EAAE,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ;IACrE,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC;IAC7C,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,KAAK,CAAC;CACtH,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { CornerRadiusOps } from \"@/attributes/shared/operators\";\nimport { Corners, CornersInput, resolveCorners, lerpCorners, isUniformCorners } from \"./corners\";\n\n/** Per-corner border radius values, all fully resolved to numbers. */\nexport type CornerRadiusResolved = Corners<number>;\n\n/** Corner radius input for a Rect: one number for all corners, or an object per corner (`{ topLeft, … }`) or axis (`{ top, bottom }` / `{ left, right }`); an already-resolved value passes through. Unspecified corners fall back to a previous value or 0. */\nexport type RectCornerRadius = CornersInput<number> | CornerRadiusResolved;\n\n/**\n * The corner-radius attribute's op set: `resolve`/`lerp` for `Shapes.corners`,\n * plus the uniform/zero checks a renderer needs to pick a cheap draw path.\n */\nexport const cornerRadiusOps: CornerRadiusOps = {\n // A resolved value is structurally a full per-corner `CornersInput<number>`,\n // so pin T=number and let resolveCorners re-resolve it idempotently.\n resolve: (value, previous) => resolveCorners(value as CornersInput<number>, 0, previous, (v): v is number => typeof v === \"number\"),\n lerp: (from, to, t) => lerpCorners(from, to, t, lerpNumber),\n isUniformInput: (value): value is number => typeof value === \"number\",\n isUniform: (value) => isUniformCorners(value),\n isZero: (value) => value.topLeft === 0 && value.topRight === 0 && value.bottomLeft === 0 && value.bottomRight === 0,\n};\n"]}
@@ -1,34 +1,13 @@
1
1
  import { LerpFunction } from "../../../tween/lerp.js";
2
2
  import type { AttributeOps, HasUniformCheck } from "../../../attributes/shared/operators.js";
3
3
  import { Corners, CornersInput } from "./corners.js";
4
- /**
5
- * How a single corner is shaped once it has a non-zero radius:
6
- * - `'rounded'` — a circular arc;
7
- * - `'angled'` — a straight diagonal chamfer cut across the corner.
8
- */
4
+ /** How a corner with a non-zero radius is shaped: `'rounded'` (a circular arc) or `'angled'` (a straight chamfer). */
9
5
  export type CornerStyle = "rounded" | "angled";
10
- /** Per-corner resolved styles. */
11
6
  export type CornerStyleResolved = Corners<CornerStyle>;
12
- /**
13
- * Accepted corner style input for a Rect: a single {@link CornerStyle} applies to
14
- * all corners; an object overrides corners individually (`{ topLeft, … }`) or by
15
- * axis (`{ top, bottom }` / `{ left, right }`). An already-resolved value passes
16
- * through. Unspecified corners fall back to a previous value or `'rounded'` when
17
- * resolved.
18
- */
7
+ /** Corner style input for a Rect: one {@link CornerStyle} for all corners, or an object per corner (`{ topLeft, … }`) or axis (`{ top, bottom }` / `{ left, right }`); an already-resolved value passes through. Unspecified corners fall back to a previous value or `'rounded'`. */
19
8
  export type RectCornerStyle = CornersInput<CornerStyle> | CornerStyleResolved;
20
- /**
21
- * The corner-style attribute's op set — no zero check, since style has no zero
22
- * value. "Interpolating" corner styles means snapping at the midpoint — corner
23
- * style is a discrete enum, so it switches at `t = 0.5` rather than blending,
24
- * matching the codebase's convention for discrete properties (see e.g. the
25
- * pixelate effect).
26
- */
9
+ /** The corner-style op set. No zero check (style has no zero value); style is a discrete enum, so "interpolating" snaps at `t = 0.5`, as for other discrete properties (see the pixelate effect). */
27
10
  export declare const cornerStyleOps: AttributeOps<RectCornerStyle, CornerStyleResolved> & HasUniformCheck<RectCornerStyle, CornerStyleResolved>;
28
- /**
29
- * Scalar (single-value) corner style tween for shapes whose vertices don't map to
30
- * named corners — polygons and polygrams apply one style to every vertex, so they
31
- * use this instead of {@link cornerStyleOps}'s per-corner form.
32
- */
11
+ /** Scalar corner style tween for shapes whose vertices don't map to named corners (polygons and polygrams apply one style to every vertex), instead of {@link cornerStyleOps}'s per-corner form. */
33
12
  export declare const lerpCornerScalarStyle: LerpFunction<CornerStyle>;
34
13
  //# sourceMappingURL=corner-style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"corner-style.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAiD,MAAM,WAAW,CAAC;AAEjG;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/C,kCAAkC;AAClC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,WAAW,CAAC,GAAG,mBAAmB,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,eAAe,EAAE,mBAAmB,CAAC,GACzE,eAAe,CAAC,eAAe,EAAE,mBAAmB,CAKzD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAA0C,CAAC"}
1
+ {"version":3,"file":"corner-style.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAiD,MAAM,WAAW,CAAC;AAEjG,sHAAsH;AACtH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEvD,sRAAsR;AACtR,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,WAAW,CAAC,GAAG,mBAAmB,CAAC;AAE9E,qMAAqM;AACrM,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,eAAe,EAAE,mBAAmB,CAAC,GACzE,eAAe,CAAC,eAAe,EAAE,mBAAmB,CAKzD,CAAC;AAEF,oMAAoM;AACpM,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAA0C,CAAC"}
@@ -1,21 +1,11 @@
1
1
  import { resolveCorners, lerpCorners, isUniformCorners } from "./corners.js";
2
- /**
3
- * The corner-style attribute's op set — no zero check, since style has no zero
4
- * value. "Interpolating" corner styles means snapping at the midpoint — corner
5
- * style is a discrete enum, so it switches at `t = 0.5` rather than blending,
6
- * matching the codebase's convention for discrete properties (see e.g. the
7
- * pixelate effect).
8
- */
2
+ /** The corner-style op set. No zero check (style has no zero value); style is a discrete enum, so "interpolating" snaps at `t = 0.5`, as for other discrete properties (see the pixelate effect). */
9
3
  export const cornerStyleOps = {
10
4
  resolve: (value, previous) => resolveCorners(value, "rounded", previous, (v) => v === "rounded" || v === "angled"),
11
5
  lerp: (from, to, t) => lerpCorners(from, to, t, (f, g) => (t < 0.5 ? f : g)),
12
6
  isUniformInput: (value) => value === "rounded" || value === "angled",
13
7
  isUniform: (value) => isUniformCorners(value),
14
8
  };
15
- /**
16
- * Scalar (single-value) corner style tween for shapes whose vertices don't map to
17
- * named corners — polygons and polygrams apply one style to every vertex, so they
18
- * use this instead of {@link cornerStyleOps}'s per-corner form.
19
- */
9
+ /** Scalar corner style tween for shapes whose vertices don't map to named corners (polygons and polygrams apply one style to every vertex), instead of {@link cornerStyleOps}'s per-corner form. */
20
10
  export const lerpCornerScalarStyle = (from, to, t) => (t < 0.5 ? from : to);
21
11
  //# sourceMappingURL=corner-style.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"corner-style.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-style.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAqBjG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GACmC;IAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,KAAkC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,QAAQ,CAAC;IACjK,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,cAAc,EAAE,CAAC,KAAK,EAAwB,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,QAAQ;IAC1F,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC;CAChD,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA8B,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { LerpFunction } from \"@/tween/lerp\";\nimport type { AttributeOps, HasUniformCheck } from \"@/attributes/shared/operators\";\nimport { Corners, CornersInput, resolveCorners, lerpCorners, isUniformCorners } from \"./corners\";\n\n/**\n * How a single corner is shaped once it has a non-zero radius:\n * - `'rounded'` — a circular arc;\n * - `'angled'` — a straight diagonal chamfer cut across the corner.\n */\nexport type CornerStyle = \"rounded\" | \"angled\";\n\n/** Per-corner resolved styles. */\nexport type CornerStyleResolved = Corners<CornerStyle>;\n\n/**\n * Accepted corner style input for a Rect: a single {@link CornerStyle} applies to\n * all corners; an object overrides corners individually (`{ topLeft, … }`) or by\n * axis (`{ top, bottom }` / `{ left, right }`). An already-resolved value passes\n * through. Unspecified corners fall back to a previous value or `'rounded'` when\n * resolved.\n */\nexport type RectCornerStyle = CornersInput<CornerStyle> | CornerStyleResolved;\n\n/**\n * The corner-style attribute's op set — no zero check, since style has no zero\n * value. \"Interpolating\" corner styles means snapping at the midpoint — corner\n * style is a discrete enum, so it switches at `t = 0.5` rather than blending,\n * matching the codebase's convention for discrete properties (see e.g. the\n * pixelate effect).\n */\nexport const cornerStyleOps: AttributeOps<RectCornerStyle, CornerStyleResolved>\n & HasUniformCheck<RectCornerStyle, CornerStyleResolved> = {\n resolve: (value, previous) => resolveCorners(value as CornersInput<CornerStyle>, \"rounded\", previous, (v): v is CornerStyle => v === \"rounded\" || v === \"angled\"),\n lerp: (from, to, t) => lerpCorners(from, to, t, (f, g) => (t < 0.5 ? f : g)),\n isUniformInput: (value): value is CornerStyle => value === \"rounded\" || value === \"angled\",\n isUniform: (value) => isUniformCorners(value),\n};\n\n/**\n * Scalar (single-value) corner style tween for shapes whose vertices don't map to\n * named corners — polygons and polygrams apply one style to every vertex, so they\n * use this instead of {@link cornerStyleOps}'s per-corner form.\n */\nexport const lerpCornerScalarStyle: LerpFunction<CornerStyle> = (from, to, t) => (t < 0.5 ? from : to);\n"]}
1
+ {"version":3,"file":"corner-style.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-style.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAUjG,qMAAqM;AACrM,MAAM,CAAC,MAAM,cAAc,GACmC;IAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,KAAkC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,QAAQ,CAAC;IACjK,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,cAAc,EAAE,CAAC,KAAK,EAAwB,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,QAAQ;IAC1F,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC;CAChD,CAAC;AAEF,oMAAoM;AACpM,MAAM,CAAC,MAAM,qBAAqB,GAA8B,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { LerpFunction } from \"@/tween/lerp\";\nimport type { AttributeOps, HasUniformCheck } from \"@/attributes/shared/operators\";\nimport { Corners, CornersInput, resolveCorners, lerpCorners, isUniformCorners } from \"./corners\";\n\n/** How a corner with a non-zero radius is shaped: `'rounded'` (a circular arc) or `'angled'` (a straight chamfer). */\nexport type CornerStyle = \"rounded\" | \"angled\";\n\nexport type CornerStyleResolved = Corners<CornerStyle>;\n\n/** Corner style input for a Rect: one {@link CornerStyle} for all corners, or an object per corner (`{ topLeft, … }`) or axis (`{ top, bottom }` / `{ left, right }`); an already-resolved value passes through. Unspecified corners fall back to a previous value or `'rounded'`. */\nexport type RectCornerStyle = CornersInput<CornerStyle> | CornerStyleResolved;\n\n/** The corner-style op set. No zero check (style has no zero value); style is a discrete enum, so \"interpolating\" snaps at `t = 0.5`, as for other discrete properties (see the pixelate effect). */\nexport const cornerStyleOps: AttributeOps<RectCornerStyle, CornerStyleResolved>\n & HasUniformCheck<RectCornerStyle, CornerStyleResolved> = {\n resolve: (value, previous) => resolveCorners(value as CornersInput<CornerStyle>, \"rounded\", previous, (v): v is CornerStyle => v === \"rounded\" || v === \"angled\"),\n lerp: (from, to, t) => lerpCorners(from, to, t, (f, g) => (t < 0.5 ? f : g)),\n isUniformInput: (value): value is CornerStyle => value === \"rounded\" || value === \"angled\",\n isUniform: (value) => isUniformCorners(value),\n};\n\n/** Scalar corner style tween for shapes whose vertices don't map to named corners (polygons and polygrams apply one style to every vertex), instead of {@link cornerStyleOps}'s per-corner form. */\nexport const lerpCornerScalarStyle: LerpFunction<CornerStyle> = (from, to, t) => (t < 0.5 ? from : to);\n"]}
@@ -6,18 +6,7 @@ export interface Corners<T> {
6
6
  bottomLeft: T;
7
7
  bottomRight: T;
8
8
  }
9
- /**
10
- * The accepted input grammar for any per-corner property (radius, style),
11
- * generic over the corner value type `T`:
12
- *
13
- * - a single `T` applies uniformly to all four corners;
14
- * - `{ topLeft, … }` overrides individual corners (unspecified corners fall back
15
- * to a previous value or the type's default when resolved);
16
- * - `{ top, bottom }` sets the top pair (`topLeft`, `topRight`) and/or the bottom
17
- * pair (`bottomLeft`, `bottomRight`);
18
- * - `{ left, right }` sets the left pair (`topLeft`, `bottomLeft`) and/or the
19
- * right pair (`topRight`, `bottomRight`).
20
- */
9
+ /** The input grammar for any per-corner property, generic over the corner value `T`: a single `T` applies to all four; `{ topLeft, … }` overrides individual corners (the rest fall back to a previous value or the default); `{ top, bottom }` sets the top and/or bottom pair; `{ left, right }` the left and/or right pair. */
21
10
  export type CornersInput<T> = T | Partial<Corners<T>> | {
22
11
  top?: T;
23
12
  bottom?: T;
@@ -25,16 +14,8 @@ export type CornersInput<T> = T | Partial<Corners<T>> | {
25
14
  left?: T;
26
15
  right?: T;
27
16
  };
28
- /** Narrows a {@link CornersInput} to its scalar form. */
29
17
  export type CornerScalarGuard<T> = (value: CornersInput<T>) => value is T;
30
- /**
31
- * Resolves a {@link CornersInput} into a fully-specified {@link Corners}.
32
- *
33
- * Precedence per corner mirrors the rest of the codebase's mappers:
34
- * supplied value → `previous` → `fallback`. `isScalar` discriminates the scalar
35
- * form from the object forms (e.g. `typeof v === "number"` for radius, or a
36
- * string-literal check for style).
37
- */
18
+ /** Resolves a {@link CornersInput} to a full {@link Corners}; precedence per corner is supplied value → `previous` → `fallback`. `isScalar` discriminates the scalar form from the object forms. */
38
19
  export declare function resolveCorners<T>(value: CornersInput<T>, fallback: T, previous: Corners<T> | undefined, isScalar: CornerScalarGuard<T>): Corners<T>;
39
20
  /** Interpolates each corner independently with the supplied per-value lerp. */
40
21
  export declare function lerpCorners<T>(from: Corners<T>, to: Corners<T>, t: number, lerp: LerpFunction<T>): Corners<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"corners.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,mEAAmE;AACnE,MAAM,WAAW,OAAO,CAAC,CAAC;IACtB,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC;IACZ,UAAU,EAAE,CAAC,CAAC;IACd,WAAW,EAAE,CAAC,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IACpB,CAAC,GACD,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GACnB;IAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,CAAA;CAAE,GACvB;IAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,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,CAAC,CAAC,CAAC,CAAC,GACnB;IAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,CAAA;CAAE,GACvB;IAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;AAE9B,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC;AAyB1E,oMAAoM;AACpM,wBAAgB,cAAc,CAAC,CAAC,EAC5B,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EACtB,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,EAChC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC/B,OAAO,CAAC,CAAC,CAAC,CA0BZ;AAED,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,CAAC,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,EACd,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GACtB,OAAO,CAAC,CAAC,CAAC,CAOZ;AAED,sFAAsF;AACtF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAmB,GAAG,OAAO,CAEnG"}
@@ -1,9 +1,7 @@
1
1
  function makeUniform(value) {
2
2
  return { topLeft: value, topRight: value, bottomLeft: value, bottomRight: value };
3
3
  }
4
- // The {top,bottom} / {left,right} axis shorthands map to corners as documented
5
- // on CornersInput. Centralised here so the mapping is a single, test-pinned
6
- // chokepoint rather than scattered across the resolver.
4
+ // The {top,bottom} / {left,right} shorthands map to corners here, a single test-pinned chokepoint.
7
5
  function fromTopBottom(v, fb) {
8
6
  return {
9
7
  topLeft: v.top ?? fb.topLeft,
@@ -20,14 +18,7 @@ function fromLeftRight(v, fb) {
20
18
  bottomRight: v.right ?? fb.bottomRight,
21
19
  };
22
20
  }
23
- /**
24
- * Resolves a {@link CornersInput} into a fully-specified {@link Corners}.
25
- *
26
- * Precedence per corner mirrors the rest of the codebase's mappers:
27
- * supplied value → `previous` → `fallback`. `isScalar` discriminates the scalar
28
- * form from the object forms (e.g. `typeof v === "number"` for radius, or a
29
- * string-literal check for style).
30
- */
21
+ /** Resolves a {@link CornersInput} to a full {@link Corners}; precedence per corner is supplied value → `previous` → `fallback`. `isScalar` discriminates the scalar form from the object forms. */
31
22
  export function resolveCorners(value, fallback, previous, isScalar) {
32
23
  if (isScalar(value)) {
33
24
  return makeUniform(value);
@@ -51,7 +42,6 @@ export function resolveCorners(value, fallback, previous, isScalar) {
51
42
  if ("left" in obj || "right" in obj) {
52
43
  return fromLeftRight(value, fb);
53
44
  }
54
- // Empty object: keep the fallback for every corner.
55
45
  return { ...fb };
56
46
  }
57
47
  /** Interpolates each corner independently with the supplied per-value lerp. */
@@ -1 +1 @@
1
- {"version":3,"file":"corners.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corners.ts"],"names":[],"mappings":"AA+BA,SAAS,WAAW,CAAI,KAAQ;IAC5B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;AACtF,CAAC;AAED,+EAA+E;AAC/E,4EAA4E;AAC5E,wDAAwD;AACxD,SAAS,aAAa,CAAI,CAA0B,EAAE,EAAc;IAChE,OAAO;QACH,OAAO,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,OAAO;QAC5B,QAAQ,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,QAAQ;QAC9B,UAAU,EAAE,CAAC,CAA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IAAI,QAAQ,IAAI,GAAG,EAAE,CAAC;QAClC,OAAO,aAAa,CAAC,KAAgC,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,MAAM,IAAI,GAAG,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC;QAClC,OAAO,aAAa,CAAC,KAAgC,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,oDAAoD;IACpD,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC;AACrB,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,WAAW,CACvB,IAAgB,EAChB,EAAc,EACd,CAAS,EACT,IAAqB;IAErB,OAAO;QACH,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC7C,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,CAAC,CAAC;QACnD,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;KACzD,CAAC;AACN,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,gBAAgB,CAAI,CAAa,EAAE,KAA8B,MAAM,CAAC,EAAE;IACtF,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;AACpG,CAAC","sourcesContent":["import { LerpFunction } from \"@/tween/lerp\";\n\n/** A value supplied independently for each of the four corners. */\nexport interface Corners<T> {\n topLeft: T;\n topRight: T;\n bottomLeft: T;\n bottomRight: T;\n}\n\n/**\n * The accepted input grammar for any per-corner property (radius, style),\n * generic over the corner value type `T`:\n *\n * - a single `T` applies uniformly to all four corners;\n * - `{ topLeft, … }` overrides individual corners (unspecified corners fall back\n * to a previous value or the type's default when resolved);\n * - `{ top, bottom }` sets the top pair (`topLeft`, `topRight`) and/or the bottom\n * pair (`bottomLeft`, `bottomRight`);\n * - `{ left, right }` sets the left pair (`topLeft`, `bottomLeft`) and/or the\n * right pair (`topRight`, `bottomRight`).\n */\nexport type CornersInput<T> =\n | T\n | Partial<Corners<T>>\n | { top?: T; bottom?: T }\n | { left?: T; right?: T };\n\n/** Narrows a {@link CornersInput} to its scalar form. */\nexport type CornerScalarGuard<T> = (value: CornersInput<T>) => value is T;\n\nfunction makeUniform<T>(value: T): Corners<T> {\n return { topLeft: value, topRight: value, bottomLeft: value, bottomRight: value };\n}\n\n// The {top,bottom} / {left,right} axis shorthands map to corners as documented\n// on CornersInput. Centralised here so the mapping is a single, test-pinned\n// chokepoint rather than scattered across the resolver.\nfunction fromTopBottom<T>(v: { top?: T; bottom?: T }, fb: Corners<T>): Corners<T> {\n return {\n topLeft: v.top ?? fb.topLeft,\n topRight: v.top ?? fb.topRight,\n bottomLeft: v.bottom ?? fb.bottomLeft,\n bottomRight: v.bottom ?? fb.bottomRight,\n };\n}\n\nfunction fromLeftRight<T>(v: { left?: T; right?: T }, fb: Corners<T>): Corners<T> {\n return {\n topLeft: v.left ?? fb.topLeft,\n topRight: v.right ?? fb.topRight,\n bottomLeft: v.left ?? fb.bottomLeft,\n bottomRight: v.right ?? fb.bottomRight,\n };\n}\n\n/**\n * Resolves a {@link CornersInput} into a fully-specified {@link Corners}.\n *\n * Precedence per corner mirrors the rest of the codebase's mappers:\n * supplied value → `previous` → `fallback`. `isScalar` discriminates the scalar\n * form from the object forms (e.g. `typeof v === \"number\"` for radius, or a\n * string-literal check for style).\n */\nexport function resolveCorners<T>(\n value: CornersInput<T>,\n fallback: T,\n previous: Corners<T> | undefined,\n isScalar: CornerScalarGuard<T>,\n): Corners<T> {\n if (isScalar(value)) {\n return makeUniform(value);\n }\n\n const fb: Corners<T> = previous ?? makeUniform(fallback);\n const obj = value as Record<string, T | undefined>;\n\n // Per-corner keys take precedence over the axis shorthands when mixed, so\n // the more specific form wins.\n if (\"topLeft\" in obj || \"topRight\" in obj || \"bottomLeft\" in obj || \"bottomRight\" in obj) {\n const v = value as Partial<Corners<T>>;\n return {\n topLeft: v.topLeft ?? fb.topLeft,\n topRight: v.topRight ?? fb.topRight,\n bottomLeft: v.bottomLeft ?? fb.bottomLeft,\n bottomRight: v.bottomRight ?? fb.bottomRight,\n };\n }\n if (\"top\" in obj || \"bottom\" in obj) {\n return fromTopBottom(value as { top?: T; bottom?: T }, fb);\n }\n if (\"left\" in obj || \"right\" in obj) {\n return fromLeftRight(value as { left?: T; right?: T }, fb);\n }\n // Empty object: keep the fallback for every corner.\n return { ...fb };\n}\n\n/** Interpolates each corner independently with the supplied per-value lerp. */\nexport function lerpCorners<T>(\n from: Corners<T>,\n to: Corners<T>,\n t: number,\n lerp: LerpFunction<T>,\n): Corners<T> {\n return {\n topLeft: lerp(from.topLeft, to.topLeft, t),\n topRight: lerp(from.topRight, to.topRight, t),\n bottomLeft: lerp(from.bottomLeft, to.bottomLeft, t),\n bottomRight: lerp(from.bottomRight, to.bottomRight, t),\n };\n}\n\n/** Returns true when all four corners are equal (under `eq`, default `Object.is`). */\nexport function isUniformCorners<T>(c: Corners<T>, eq: (a: T, b: T) => boolean = Object.is): boolean {\n return eq(c.topLeft, c.topRight) && eq(c.topLeft, c.bottomLeft) && eq(c.topLeft, c.bottomRight);\n}\n"]}
1
+ {"version":3,"file":"corners.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corners.ts"],"names":[],"mappings":"AAmBA,SAAS,WAAW,CAAI,KAAQ;IAC5B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EA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U,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;AACpG,CAAC","sourcesContent":["import { LerpFunction } from \"@/tween/lerp\";\n\n/** A value supplied independently for each of the four corners. */\nexport interface Corners<T> {\n topLeft: T;\n topRight: T;\n bottomLeft: T;\n bottomRight: T;\n}\n\n/** The input grammar for any per-corner property, generic over the corner value `T`: a single `T` applies to all four; `{ topLeft, … }` overrides individual corners (the rest fall back to a previous value or the default); `{ top, bottom }` sets the top and/or bottom pair; `{ left, right }` the left and/or right pair. */\nexport type CornersInput<T> =\n | T\n | Partial<Corners<T>>\n | { top?: T; bottom?: T }\n | { left?: T; right?: T };\n\nexport type CornerScalarGuard<T> = (value: CornersInput<T>) => value is T;\n\nfunction makeUniform<T>(value: T): Corners<T> {\n return { topLeft: value, topRight: value, bottomLeft: value, bottomRight: value };\n}\n\n// The {top,bottom} / {left,right} shorthands map to corners here, a single test-pinned chokepoint.\nfunction fromTopBottom<T>(v: { top?: T; bottom?: T }, fb: Corners<T>): Corners<T> {\n return {\n topLeft: v.top ?? fb.topLeft,\n topRight: v.top ?? fb.topRight,\n bottomLeft: v.bottom ?? fb.bottomLeft,\n bottomRight: v.bottom ?? fb.bottomRight,\n };\n}\n\nfunction fromLeftRight<T>(v: { left?: T; right?: T }, fb: Corners<T>): Corners<T> {\n return {\n topLeft: v.left ?? fb.topLeft,\n topRight: v.right ?? fb.topRight,\n bottomLeft: v.left ?? fb.bottomLeft,\n bottomRight: v.right ?? fb.bottomRight,\n };\n}\n\n/** Resolves a {@link CornersInput} to a full {@link Corners}; precedence per corner is supplied value → `previous` → `fallback`. `isScalar` discriminates the scalar form from the object forms. */\nexport function resolveCorners<T>(\n value: CornersInput<T>,\n fallback: T,\n previous: Corners<T> | undefined,\n isScalar: CornerScalarGuard<T>,\n): Corners<T> {\n if (isScalar(value)) {\n return makeUniform(value);\n }\n\n const fb: Corners<T> = previous ?? makeUniform(fallback);\n const obj = value as Record<string, T | undefined>;\n\n // Per-corner keys take precedence over the axis shorthands when mixed, so\n // the more specific form wins.\n if (\"topLeft\" in obj || \"topRight\" in obj || \"bottomLeft\" in obj || \"bottomRight\" in obj) {\n const v = value as Partial<Corners<T>>;\n return {\n topLeft: v.topLeft ?? fb.topLeft,\n topRight: v.topRight ?? fb.topRight,\n bottomLeft: v.bottomLeft ?? fb.bottomLeft,\n bottomRight: v.bottomRight ?? fb.bottomRight,\n };\n }\n if (\"top\" in obj || \"bottom\" in obj) {\n return fromTopBottom(value as { top?: T; bottom?: T }, fb);\n }\n if (\"left\" in obj || \"right\" in obj) {\n return fromLeftRight(value as { left?: T; right?: T }, fb);\n }\n return { ...fb };\n}\n\n/** Interpolates each corner independently with the supplied per-value lerp. */\nexport function lerpCorners<T>(\n from: Corners<T>,\n to: Corners<T>,\n t: number,\n lerp: LerpFunction<T>,\n): Corners<T> {\n return {\n topLeft: lerp(from.topLeft, to.topLeft, t),\n topRight: lerp(from.topRight, to.topRight, t),\n bottomLeft: lerp(from.bottomLeft, to.bottomLeft, t),\n bottomRight: lerp(from.bottomRight, to.bottomRight, t),\n };\n}\n\n/** Returns true when all four corners are equal (under `eq`, default `Object.is`). */\nexport function isUniformCorners<T>(c: Corners<T>, eq: (a: T, b: T) => boolean = Object.is): boolean {\n return eq(c.topLeft, c.topRight) && eq(c.topLeft, c.bottomLeft) && eq(c.topLeft, c.bottomRight);\n}\n"]}