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

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