@motionscript/core 0.1.0-alpha.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (817) hide show
  1. package/CHANGELOG.md +25 -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.d.ts.map +1 -1
  105. package/dist/attributes/shape/fill/color/parser.js +20 -5
  106. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  107. package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
  108. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  109. package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
  110. package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
  111. package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
  112. package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
  113. package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
  114. package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
  115. package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
  116. package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
  117. package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
  118. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  119. package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
  120. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  121. package/dist/attributes/shape/fill/index.js.map +1 -1
  122. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  123. package/dist/attributes/shape/fill/media-preset.js.map +1 -1
  124. package/dist/attributes/shape/fill/registry.js.map +1 -1
  125. package/dist/attributes/shape/fill/union.js.map +1 -1
  126. package/dist/attributes/shape/filters/chain.js.map +1 -1
  127. package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -1
  128. package/dist/attributes/shape/filters/implementations/blur.js.map +1 -1
  129. package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -1
  130. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
  131. package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
  132. package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
  133. package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -1
  134. package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -1
  135. package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -1
  136. package/dist/attributes/shape/filters/index.js.map +1 -1
  137. package/dist/attributes/shape/filters/registry.js.map +1 -1
  138. package/dist/attributes/shape/filters/union.js.map +1 -1
  139. package/dist/attributes/shape/path/anchors.js.map +1 -1
  140. package/dist/attributes/shape/path/bezier.js.map +1 -1
  141. package/dist/attributes/shape/path/index.js.map +1 -1
  142. package/dist/attributes/shape/path/measure.js.map +1 -1
  143. package/dist/attributes/shape/path/morph.js.map +1 -1
  144. package/dist/attributes/shape/path/ops.js.map +1 -1
  145. package/dist/attributes/shape/path/types.js.map +1 -1
  146. package/dist/attributes/shape/path/walk.js.map +1 -1
  147. package/dist/attributes/shape/shaders/index.js.map +1 -1
  148. package/dist/attributes/shape/shaders/language.js.map +1 -1
  149. package/dist/attributes/shape/shaders/pack.js.map +1 -1
  150. package/dist/attributes/shape/shaders/resolve.js.map +1 -1
  151. package/dist/attributes/shape/shadow/index.js.map +1 -1
  152. package/dist/attributes/shape/shadow/shadow.js.map +1 -1
  153. package/dist/attributes/shape/stroke/index.js.map +1 -1
  154. package/dist/attributes/shape/stroke/stroke.js.map +1 -1
  155. package/dist/attributes/shared/operators.js.map +1 -1
  156. package/dist/attributes/text/index.js.map +1 -1
  157. package/dist/attributes/text/ops.js.map +1 -1
  158. package/dist/attributes/text/types.js.map +1 -1
  159. package/dist/browser/chunks/{chunk-LKUYVFU3.js → chunk-4BDLFEOC.js} +1 -1
  160. package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
  161. package/dist/browser/chunks/chunk-CCGVIR4F.js +3 -0
  162. package/dist/browser/chunks/chunk-CCGVIR4F.js.map +7 -0
  163. package/dist/browser/chunks/chunk-N4WSN5WY.js +13 -0
  164. package/dist/browser/chunks/chunk-N4WSN5WY.js.map +7 -0
  165. package/dist/browser/chunks/chunk-WZSI3GSK.js +6 -0
  166. package/dist/browser/chunks/chunk-WZSI3GSK.js.map +7 -0
  167. package/dist/browser/component.js +1 -1
  168. package/dist/browser/experimental.js +1 -1
  169. package/dist/browser/experimental.js.map +1 -1
  170. package/dist/browser/index.js +1 -1
  171. package/dist/browser/index.js.map +1 -1
  172. package/dist/browser/manifest.json +1 -1
  173. package/dist/browser/sdk.js +1 -1
  174. package/dist/component.js.map +1 -1
  175. package/dist/components/builtins/audio/audio.js.map +1 -1
  176. package/dist/components/builtins/geometry/composite.js.map +1 -1
  177. package/dist/components/builtins/geometry/geometry.js.map +1 -1
  178. package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
  179. package/dist/components/builtins/layout/layout.js.map +1 -1
  180. package/dist/components/builtins/media/media.js.map +1 -1
  181. package/dist/components/builtins/providers/providers.js.map +1 -1
  182. package/dist/components/builtins/text/number-format.js.map +1 -1
  183. package/dist/components/builtins/text/number-pattern.js.map +1 -1
  184. package/dist/components/builtins/text/text-defaults.js.map +1 -1
  185. package/dist/components/builtins/text/text-layout.js.map +1 -1
  186. package/dist/components/builtins/text/text.d.ts +9 -9
  187. package/dist/components/builtins/text/text.js.map +1 -1
  188. package/dist/components/builtins/three/canvas3d.js.map +1 -1
  189. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
  190. package/dist/components/builtins/three/three.js.map +1 -1
  191. package/dist/components/factory/api.js.map +1 -1
  192. package/dist/components/factory/clip-of.js.map +1 -1
  193. package/dist/components/factory/commands-for.js.map +1 -1
  194. package/dist/components/factory/component-audio.js.map +1 -1
  195. package/dist/components/factory/component2d.js.map +1 -1
  196. package/dist/components/factory/component3d.js.map +1 -1
  197. package/dist/components/factory/factory.js.map +1 -1
  198. package/dist/components/factory/timeline.js.map +1 -1
  199. package/dist/components/factory/type-def.js.map +1 -1
  200. package/dist/components/factory/types.js.map +1 -1
  201. package/dist/components/factory/views.d.ts.map +1 -1
  202. package/dist/components/factory/views.js +41 -1
  203. package/dist/components/factory/views.js.map +1 -1
  204. package/dist/components/modules/aim.js.map +1 -1
  205. package/dist/components/modules/corners.js.map +1 -1
  206. package/dist/components/modules/flow.js.map +1 -1
  207. package/dist/components/modules/material.js.map +1 -1
  208. package/dist/components/modules/paint.js.map +1 -1
  209. package/dist/components/modules/shapes.js.map +1 -1
  210. package/dist/components/modules/text-layout.js.map +1 -1
  211. package/dist/components/modules/text-style.d.ts +1 -1
  212. package/dist/components/modules/text-style.js.map +1 -1
  213. package/dist/components/modules/three-entries.js.map +1 -1
  214. package/dist/components/modules/view3d.js.map +1 -1
  215. package/dist/components/trees/2d/group-bounds.js.map +1 -1
  216. package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
  217. package/dist/components/trees/2d/node-motion.js.map +1 -1
  218. package/dist/components/trees/2d/node-render.js.map +1 -1
  219. package/dist/components/trees/2d/node-space.js.map +1 -1
  220. package/dist/components/trees/2d/node-transform.js.map +1 -1
  221. package/dist/components/trees/2d/node2d.js.map +1 -1
  222. package/dist/components/trees/audio/index.js.map +1 -1
  223. package/dist/components/trees/audio/node-audio.js.map +1 -1
  224. package/dist/components/trees/index.js.map +1 -1
  225. package/dist/components/trees/node/node-editor-state.js.map +1 -1
  226. package/dist/components/trees/node/node-reactive.d.ts +3 -4
  227. package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
  228. package/dist/components/trees/node/node-reactive.js +13 -10
  229. package/dist/components/trees/node/node-reactive.js.map +1 -1
  230. package/dist/components/trees/node/node-time.js.map +1 -1
  231. package/dist/components/trees/node/node-walk.js.map +1 -1
  232. package/dist/components/trees/node/node.js.map +1 -1
  233. package/dist/components/trees/root/canvas2d-node.js.map +1 -1
  234. package/dist/components/trees/three/node3d.js.map +1 -1
  235. package/dist/document/audio.js.map +1 -1
  236. package/dist/document/builtins.js.map +1 -1
  237. package/dist/document/command-traits.d.ts +8 -0
  238. package/dist/document/command-traits.d.ts.map +1 -1
  239. package/dist/document/command-traits.js +17 -0
  240. package/dist/document/command-traits.js.map +1 -1
  241. package/dist/document/deny-globals.js.map +1 -1
  242. package/dist/document/diff.js.map +1 -1
  243. package/dist/document/doc-index.js.map +1 -1
  244. package/dist/document/expression/compile.js.map +1 -1
  245. package/dist/document/expression/index.js.map +1 -1
  246. package/dist/document/expression/ops.js.map +1 -1
  247. package/dist/document/expression/parse.js.map +1 -1
  248. package/dist/document/expression/refs.js.map +1 -1
  249. package/dist/document/expression/types.js.map +1 -1
  250. package/dist/document/expression/walk.js.map +1 -1
  251. package/dist/document/index.js.map +1 -1
  252. package/dist/document/migrate.js.map +1 -1
  253. package/dist/document/missing-node.js.map +1 -1
  254. package/dist/document/node-decorator.js.map +1 -1
  255. package/dist/document/node-descriptor.js.map +1 -1
  256. package/dist/document/placement.js.map +1 -1
  257. package/dist/document/project.js.map +1 -1
  258. package/dist/document/prop-evolution.js.map +1 -1
  259. package/dist/document/registry.js.map +1 -1
  260. package/dist/document/settled-index.d.ts +6 -0
  261. package/dist/document/settled-index.d.ts.map +1 -1
  262. package/dist/document/settled-index.js +18 -1
  263. package/dist/document/settled-index.js.map +1 -1
  264. package/dist/document/timeline-patch.js.map +1 -1
  265. package/dist/document/timeline.d.ts.map +1 -1
  266. package/dist/document/timeline.js +26 -6
  267. package/dist/document/timeline.js.map +1 -1
  268. package/dist/document/types.js.map +1 -1
  269. package/dist/document/validate.js.map +1 -1
  270. package/dist/document/vocabulary.js.map +1 -1
  271. package/dist/experimental.d.ts.map +1 -1
  272. package/dist/experimental.js.map +1 -1
  273. package/dist/index.js.map +1 -1
  274. package/dist/layout/bounds.js.map +1 -1
  275. package/dist/layout/constraints.js.map +1 -1
  276. package/dist/layout/flex.js.map +1 -1
  277. package/dist/layout/freeform.js.map +1 -1
  278. package/dist/layout/grid.js.map +1 -1
  279. package/dist/layout/index.js.map +1 -1
  280. package/dist/layout/item.js.map +1 -1
  281. package/dist/layout/ops.js.map +1 -1
  282. package/dist/layout/types.js.map +1 -1
  283. package/dist/platform/audio-sink.js.map +1 -1
  284. package/dist/platform/exporter.js.map +1 -1
  285. package/dist/platform/index.js.map +1 -1
  286. package/dist/platform/stepped-clock.js.map +1 -1
  287. package/dist/platform/storage-adapter.js.map +1 -1
  288. package/dist/platform/ticker.js.map +1 -1
  289. package/dist/project/config.js.map +1 -1
  290. package/dist/project/index.js.map +1 -1
  291. package/dist/project/tree.js.map +1 -1
  292. package/dist/props/host.d.ts +5 -0
  293. package/dist/props/host.d.ts.map +1 -1
  294. package/dist/props/host.js +3 -1
  295. package/dist/props/host.js.map +1 -1
  296. package/dist/props/index.js.map +1 -1
  297. package/dist/props/layout.d.ts +29 -0
  298. package/dist/props/layout.d.ts.map +1 -0
  299. package/dist/props/layout.js +84 -0
  300. package/dist/props/layout.js.map +1 -0
  301. package/dist/props/observer.js.map +1 -1
  302. package/dist/props/slot.js.map +1 -1
  303. package/dist/renamed-scene-names.js.map +1 -1
  304. package/dist/render/canvas-render-context2d.js.map +1 -1
  305. package/dist/render/clip-contains.js.map +1 -1
  306. package/dist/render/clip.js.map +1 -1
  307. package/dist/render/descriptors/ellipse.js.map +1 -1
  308. package/dist/render/descriptors/line.js.map +1 -1
  309. package/dist/render/descriptors/path-builder.js.map +1 -1
  310. package/dist/render/descriptors/path.js.map +1 -1
  311. package/dist/render/descriptors/polygon.js.map +1 -1
  312. package/dist/render/descriptors/polygram.js.map +1 -1
  313. package/dist/render/descriptors/rect.js.map +1 -1
  314. package/dist/render/descriptors/richtext.js.map +1 -1
  315. package/dist/render/descriptors/shape.js.map +1 -1
  316. package/dist/render/descriptors/text.js.map +1 -1
  317. package/dist/render/descriptors/transform.js.map +1 -1
  318. package/dist/render/graphics2d.js.map +1 -1
  319. package/dist/render/index.js.map +1 -1
  320. package/dist/render/measure-context.js.map +1 -1
  321. package/dist/render/null-render-context.js.map +1 -1
  322. package/dist/render/render-context2d.js.map +1 -1
  323. package/dist/render/render-issue.js.map +1 -1
  324. package/dist/render/surface.js.map +1 -1
  325. package/dist/render/text-defaults.js.map +1 -1
  326. package/dist/render/text-layout.js.map +1 -1
  327. package/dist/render3d/bounds3d.js.map +1 -1
  328. package/dist/render3d/builders.js.map +1 -1
  329. package/dist/render3d/camera.js.map +1 -1
  330. package/dist/render3d/fill3d.js.map +1 -1
  331. package/dist/render3d/geometry.js.map +1 -1
  332. package/dist/render3d/graphics3d.js.map +1 -1
  333. package/dist/render3d/index.js.map +1 -1
  334. package/dist/render3d/inert.js.map +1 -1
  335. package/dist/render3d/light.js.map +1 -1
  336. package/dist/render3d/material.js.map +1 -1
  337. package/dist/render3d/matrix4.js.map +1 -1
  338. package/dist/render3d/render-context3d.js.map +1 -1
  339. package/dist/render3d/resources.js.map +1 -1
  340. package/dist/render3d/rounded-box.js.map +1 -1
  341. package/dist/render3d/scene-settings.js.map +1 -1
  342. package/dist/render3d/scene3d.js.map +1 -1
  343. package/dist/render3d/segments.js.map +1 -1
  344. package/dist/render3d/texture.js.map +1 -1
  345. package/dist/render3d/tracking.js.map +1 -1
  346. package/dist/render3d/transform.js.map +1 -1
  347. package/dist/render3d/vector3.js.map +1 -1
  348. package/dist/render3d/walk.js.map +1 -1
  349. package/dist/runtime/asset-refine.js.map +1 -1
  350. package/dist/runtime/asset-timeline.js.map +1 -1
  351. package/dist/runtime/asset-update.js.map +1 -1
  352. package/dist/runtime/audio-index.js.map +1 -1
  353. package/dist/runtime/builtin-context.js.map +1 -1
  354. package/dist/runtime/clip-instance.js.map +1 -1
  355. package/dist/runtime/clip-store.js.map +1 -1
  356. package/dist/runtime/engine.js.map +1 -1
  357. package/dist/runtime/frame-time.js.map +1 -1
  358. package/dist/runtime/index.js.map +1 -1
  359. package/dist/runtime/node-picking.js.map +1 -1
  360. package/dist/runtime/node-picking3d.js.map +1 -1
  361. package/dist/runtime/placement.js.map +1 -1
  362. package/dist/runtime/playback-controller.js.map +1 -1
  363. package/dist/runtime/playback.js.map +1 -1
  364. package/dist/runtime/precompisition.js.map +1 -1
  365. package/dist/runtime/project-assets.js.map +1 -1
  366. package/dist/runtime/session.js.map +1 -1
  367. package/dist/runtime/settle.js.map +1 -1
  368. package/dist/runtime/state-evaluator.js.map +1 -1
  369. package/dist/runtime/text-geometry.js.map +1 -1
  370. package/dist/sdk/index.js.map +1 -1
  371. package/dist/tween/command-decorator.js.map +1 -1
  372. package/dist/tween/command.js.map +1 -1
  373. package/dist/tween/ease/constants.js.map +1 -1
  374. package/dist/tween/ease/curve.js.map +1 -1
  375. package/dist/tween/ease/describe.js.map +1 -1
  376. package/dist/tween/ease/spec.js.map +1 -1
  377. package/dist/tween/ease/type.js.map +1 -1
  378. package/dist/tween/index.js.map +1 -1
  379. package/dist/tween/inert.js.map +1 -1
  380. package/dist/tween/lerp.js.map +1 -1
  381. package/dist/tween/loop.js.map +1 -1
  382. package/dist/tween/prepare.js.map +1 -1
  383. package/dist/tween/stepper.js.map +1 -1
  384. package/dist/tween/to-command.js.map +1 -1
  385. package/dist/util/clamp.js.map +1 -1
  386. package/dist/util/context.js.map +1 -1
  387. package/dist/util/csv.js.map +1 -1
  388. package/dist/util/generateList.js.map +1 -1
  389. package/dist/util/index.js.map +1 -1
  390. package/dist/util/metrics.js.map +1 -1
  391. package/dist/util/random.js.map +1 -1
  392. package/dist/util/reference.js.map +1 -1
  393. package/dist/util/scheduler.js.map +1 -1
  394. package/package.json +1 -1
  395. package/dist/attributes/audio/filters/chain.d.ts +0 -113
  396. package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
  397. package/dist/attributes/audio/filters/chain.js +0 -104
  398. package/dist/attributes/audio/filters/chain.js.map +0 -1
  399. package/dist/attributes/audio/filters/curve.d.ts +0 -152
  400. package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
  401. package/dist/attributes/audio/filters/curve.js +0 -250
  402. package/dist/attributes/audio/filters/curve.js.map +0 -1
  403. package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
  404. package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
  405. package/dist/attributes/audio/filters/implementations/echo.js +0 -11
  406. package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
  407. package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
  408. package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
  409. package/dist/attributes/audio/filters/implementations/gain.js +0 -6
  410. package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
  411. package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
  412. package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
  413. package/dist/attributes/audio/filters/implementations/highpass.js +0 -10
  414. package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
  415. package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
  416. package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
  417. package/dist/attributes/audio/filters/implementations/lowpass.js +0 -10
  418. package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
  419. package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
  420. package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
  421. package/dist/attributes/audio/filters/implementations/speed.js +0 -6
  422. package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
  423. package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
  424. package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
  425. package/dist/attributes/audio/filters/implementations/tremolo.js +0 -10
  426. package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
  427. package/dist/attributes/audio/filters/index.d.ts +0 -22
  428. package/dist/attributes/audio/filters/index.d.ts.map +0 -1
  429. package/dist/attributes/audio/filters/index.js +0 -8
  430. package/dist/attributes/audio/filters/index.js.map +0 -1
  431. package/dist/attributes/audio/filters/registry.d.ts +0 -36
  432. package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
  433. package/dist/attributes/audio/filters/registry.js +0 -82
  434. package/dist/attributes/audio/filters/registry.js.map +0 -1
  435. package/dist/attributes/audio/filters/union.d.ts +0 -18
  436. package/dist/attributes/audio/filters/union.d.ts.map +0 -1
  437. package/dist/attributes/audio/filters/union.js +0 -28
  438. package/dist/attributes/audio/filters/union.js.map +0 -1
  439. package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
  440. package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
  441. package/dist/attributes/shape/sksl-uniforms.js +0 -0
  442. package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
  443. package/dist/browser/chunks/chunk-AOT33LMS.js +0 -13
  444. package/dist/browser/chunks/chunk-AOT33LMS.js.map +0 -7
  445. package/dist/browser/chunks/chunk-GKM6UZJR.js +0 -6
  446. package/dist/browser/chunks/chunk-GKM6UZJR.js.map +0 -7
  447. package/dist/browser/chunks/chunk-LKUYVFU3.js.map +0 -7
  448. package/dist/browser/chunks/chunk-ZRPZPWZU.js +0 -3
  449. package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +0 -7
  450. package/dist/component/api.d.ts +0 -508
  451. package/dist/component/api.d.ts.map +0 -1
  452. package/dist/component/api.js +0 -4
  453. package/dist/component/api.js.map +0 -1
  454. package/dist/component/builtins/audio.d.ts +0 -26
  455. package/dist/component/builtins/audio.d.ts.map +0 -1
  456. package/dist/component/builtins/audio.js +0 -41
  457. package/dist/component/builtins/audio.js.map +0 -1
  458. package/dist/component/builtins/canvas3d.d.ts +0 -98
  459. package/dist/component/builtins/canvas3d.d.ts.map +0 -1
  460. package/dist/component/builtins/canvas3d.js +0 -21
  461. package/dist/component/builtins/canvas3d.js.map +0 -1
  462. package/dist/component/builtins/composite.d.ts +0 -56
  463. package/dist/component/builtins/composite.d.ts.map +0 -1
  464. package/dist/component/builtins/composite.js +0 -25
  465. package/dist/component/builtins/composite.js.map +0 -1
  466. package/dist/component/builtins/geometry.d.ts +0 -505
  467. package/dist/component/builtins/geometry.d.ts.map +0 -1
  468. package/dist/component/builtins/geometry.js +0 -107
  469. package/dist/component/builtins/geometry.js.map +0 -1
  470. package/dist/component/builtins/layout.d.ts +0 -88
  471. package/dist/component/builtins/layout.d.ts.map +0 -1
  472. package/dist/component/builtins/layout.js +0 -84
  473. package/dist/component/builtins/layout.js.map +0 -1
  474. package/dist/component/builtins/media.d.ts +0 -95
  475. package/dist/component/builtins/media.d.ts.map +0 -1
  476. package/dist/component/builtins/media.js +0 -149
  477. package/dist/component/builtins/media.js.map +0 -1
  478. package/dist/component/builtins/providers.d.ts +0 -23
  479. package/dist/component/builtins/providers.d.ts.map +0 -1
  480. package/dist/component/builtins/providers.js +0 -30
  481. package/dist/component/builtins/providers.js.map +0 -1
  482. package/dist/component/builtins/text.d.ts +0 -193
  483. package/dist/component/builtins/text.d.ts.map +0 -1
  484. package/dist/component/builtins/text.js +0 -113
  485. package/dist/component/builtins/text.js.map +0 -1
  486. package/dist/component/builtins/three.d.ts +0 -1085
  487. package/dist/component/builtins/three.d.ts.map +0 -1
  488. package/dist/component/builtins/three.js +0 -265
  489. package/dist/component/builtins/three.js.map +0 -1
  490. package/dist/component/clip-of.d.ts +0 -5
  491. package/dist/component/clip-of.d.ts.map +0 -1
  492. package/dist/component/clip-of.js +0 -33
  493. package/dist/component/clip-of.js.map +0 -1
  494. package/dist/component/commands-for.d.ts +0 -19
  495. package/dist/component/commands-for.d.ts.map +0 -1
  496. package/dist/component/commands-for.js +0 -5
  497. package/dist/component/commands-for.js.map +0 -1
  498. package/dist/component/component-audio.d.ts +0 -9
  499. package/dist/component/component-audio.d.ts.map +0 -1
  500. package/dist/component/component-audio.js +0 -18
  501. package/dist/component/component-audio.js.map +0 -1
  502. package/dist/component/component2d.d.ts +0 -9
  503. package/dist/component/component2d.d.ts.map +0 -1
  504. package/dist/component/component2d.js +0 -239
  505. package/dist/component/component2d.js.map +0 -1
  506. package/dist/component/component3d.d.ts +0 -9
  507. package/dist/component/component3d.d.ts.map +0 -1
  508. package/dist/component/component3d.js +0 -99
  509. package/dist/component/component3d.js.map +0 -1
  510. package/dist/component/factory.d.ts +0 -63
  511. package/dist/component/factory.d.ts.map +0 -1
  512. package/dist/component/factory.js +0 -313
  513. package/dist/component/factory.js.map +0 -1
  514. package/dist/component/modules/aim.d.ts +0 -30
  515. package/dist/component/modules/aim.d.ts.map +0 -1
  516. package/dist/component/modules/aim.js +0 -39
  517. package/dist/component/modules/aim.js.map +0 -1
  518. package/dist/component/modules/corners.d.ts +0 -13
  519. package/dist/component/modules/corners.d.ts.map +0 -1
  520. package/dist/component/modules/corners.js +0 -12
  521. package/dist/component/modules/corners.js.map +0 -1
  522. package/dist/component/modules/flow.d.ts +0 -26
  523. package/dist/component/modules/flow.d.ts.map +0 -1
  524. package/dist/component/modules/flow.js +0 -55
  525. package/dist/component/modules/flow.js.map +0 -1
  526. package/dist/component/modules/material.d.ts +0 -40
  527. package/dist/component/modules/material.d.ts.map +0 -1
  528. package/dist/component/modules/material.js +0 -75
  529. package/dist/component/modules/material.js.map +0 -1
  530. package/dist/component/modules/paint.d.ts +0 -71
  531. package/dist/component/modules/paint.d.ts.map +0 -1
  532. package/dist/component/modules/paint.js +0 -106
  533. package/dist/component/modules/paint.js.map +0 -1
  534. package/dist/component/modules/shapes.d.ts +0 -31
  535. package/dist/component/modules/shapes.d.ts.map +0 -1
  536. package/dist/component/modules/shapes.js +0 -43
  537. package/dist/component/modules/shapes.js.map +0 -1
  538. package/dist/component/modules/text-layout.d.ts +0 -26
  539. package/dist/component/modules/text-layout.d.ts.map +0 -1
  540. package/dist/component/modules/text-layout.js +0 -57
  541. package/dist/component/modules/text-layout.js.map +0 -1
  542. package/dist/component/modules/text-style.d.ts +0 -48
  543. package/dist/component/modules/text-style.d.ts.map +0 -1
  544. package/dist/component/modules/text-style.js +0 -63
  545. package/dist/component/modules/text-style.js.map +0 -1
  546. package/dist/component/modules/three-entries.d.ts +0 -23
  547. package/dist/component/modules/three-entries.d.ts.map +0 -1
  548. package/dist/component/modules/three-entries.js +0 -41
  549. package/dist/component/modules/three-entries.js.map +0 -1
  550. package/dist/component/modules/view3d.d.ts +0 -55
  551. package/dist/component/modules/view3d.d.ts.map +0 -1
  552. package/dist/component/modules/view3d.js +0 -160
  553. package/dist/component/modules/view3d.js.map +0 -1
  554. package/dist/component/timeline.d.ts +0 -22
  555. package/dist/component/timeline.d.ts.map +0 -1
  556. package/dist/component/timeline.js +0 -128
  557. package/dist/component/timeline.js.map +0 -1
  558. package/dist/component/type-def.d.ts +0 -26
  559. package/dist/component/type-def.d.ts.map +0 -1
  560. package/dist/component/type-def.js +0 -16
  561. package/dist/component/type-def.js.map +0 -1
  562. package/dist/component/types.d.ts +0 -91
  563. package/dist/component/types.d.ts.map +0 -1
  564. package/dist/component/types.js +0 -88
  565. package/dist/component/types.js.map +0 -1
  566. package/dist/component/views.d.ts +0 -121
  567. package/dist/component/views.d.ts.map +0 -1
  568. package/dist/component/views.js +0 -413
  569. package/dist/component/views.js.map +0 -1
  570. package/dist/document/withdraw.d.ts +0 -28
  571. package/dist/document/withdraw.d.ts.map +0 -1
  572. package/dist/document/withdraw.js +0 -61
  573. package/dist/document/withdraw.js.map +0 -1
  574. package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
  575. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  576. package/dist/jsx/jsx-dev-runtime.js +0 -3
  577. package/dist/jsx/jsx-dev-runtime.js.map +0 -1
  578. package/dist/jsx/jsx-runtime.d.ts +0 -27
  579. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  580. package/dist/jsx/jsx-runtime.js +0 -26
  581. package/dist/jsx/jsx-runtime.js.map +0 -1
  582. package/dist/nodes/2d/node-lifecycle.d.ts +0 -46
  583. package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
  584. package/dist/nodes/2d/node-lifecycle.js +0 -264
  585. package/dist/nodes/2d/node-lifecycle.js.map +0 -1
  586. package/dist/nodes/2d/node-motion.d.ts +0 -56
  587. package/dist/nodes/2d/node-motion.d.ts.map +0 -1
  588. package/dist/nodes/2d/node-motion.js +0 -86
  589. package/dist/nodes/2d/node-motion.js.map +0 -1
  590. package/dist/nodes/2d/node-render.d.ts +0 -44
  591. package/dist/nodes/2d/node-render.d.ts.map +0 -1
  592. package/dist/nodes/2d/node-render.js +0 -80
  593. package/dist/nodes/2d/node-render.js.map +0 -1
  594. package/dist/nodes/2d/node-space.d.ts +0 -63
  595. package/dist/nodes/2d/node-space.d.ts.map +0 -1
  596. package/dist/nodes/2d/node-space.js +0 -131
  597. package/dist/nodes/2d/node-space.js.map +0 -1
  598. package/dist/nodes/2d/node-transform.d.ts +0 -55
  599. package/dist/nodes/2d/node-transform.d.ts.map +0 -1
  600. package/dist/nodes/2d/node-transform.js +0 -73
  601. package/dist/nodes/2d/node-transform.js.map +0 -1
  602. package/dist/nodes/2d/node2d.d.ts +0 -1111
  603. package/dist/nodes/2d/node2d.d.ts.map +0 -1
  604. package/dist/nodes/2d/node2d.js +0 -1665
  605. package/dist/nodes/2d/node2d.js.map +0 -1
  606. package/dist/nodes/2d/paint-node.d.ts +0 -142
  607. package/dist/nodes/2d/paint-node.d.ts.map +0 -1
  608. package/dist/nodes/2d/paint-node.js +0 -232
  609. package/dist/nodes/2d/paint-node.js.map +0 -1
  610. package/dist/nodes/audio/audio-bus.d.ts +0 -28
  611. package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
  612. package/dist/nodes/audio/audio-bus.js +0 -33
  613. package/dist/nodes/audio/audio-bus.js.map +0 -1
  614. package/dist/nodes/audio/index.d.ts +0 -4
  615. package/dist/nodes/audio/index.d.ts.map +0 -1
  616. package/dist/nodes/audio/index.js +0 -2
  617. package/dist/nodes/audio/index.js.map +0 -1
  618. package/dist/nodes/audio/node-audio.d.ts +0 -107
  619. package/dist/nodes/audio/node-audio.d.ts.map +0 -1
  620. package/dist/nodes/audio/node-audio.js +0 -179
  621. package/dist/nodes/audio/node-audio.js.map +0 -1
  622. package/dist/nodes/audio/sound-node.d.ts +0 -41
  623. package/dist/nodes/audio/sound-node.d.ts.map +0 -1
  624. package/dist/nodes/audio/sound-node.js +0 -71
  625. package/dist/nodes/audio/sound-node.js.map +0 -1
  626. package/dist/nodes/geometry/boolean-node.d.ts +0 -28
  627. package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
  628. package/dist/nodes/geometry/boolean-node.js +0 -81
  629. package/dist/nodes/geometry/boolean-node.js.map +0 -1
  630. package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
  631. package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
  632. package/dist/nodes/geometry/bounds-shape-node.js +0 -181
  633. package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
  634. package/dist/nodes/geometry/box-path-node.d.ts +0 -89
  635. package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
  636. package/dist/nodes/geometry/box-path-node.js +0 -116
  637. package/dist/nodes/geometry/box-path-node.js.map +0 -1
  638. package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
  639. package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
  640. package/dist/nodes/geometry/ellipse-node.js +0 -45
  641. package/dist/nodes/geometry/ellipse-node.js.map +0 -1
  642. package/dist/nodes/geometry/group-bounds.d.ts +0 -56
  643. package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
  644. package/dist/nodes/geometry/group-bounds.js +0 -87
  645. package/dist/nodes/geometry/group-bounds.js.map +0 -1
  646. package/dist/nodes/geometry/mask-node.d.ts +0 -33
  647. package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
  648. package/dist/nodes/geometry/mask-node.js +0 -66
  649. package/dist/nodes/geometry/mask-node.js.map +0 -1
  650. package/dist/nodes/geometry/path-node.d.ts +0 -26
  651. package/dist/nodes/geometry/path-node.d.ts.map +0 -1
  652. package/dist/nodes/geometry/path-node.js +0 -58
  653. package/dist/nodes/geometry/path-node.js.map +0 -1
  654. package/dist/nodes/geometry/polygon-node.d.ts +0 -26
  655. package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
  656. package/dist/nodes/geometry/polygon-node.js +0 -47
  657. package/dist/nodes/geometry/polygon-node.js.map +0 -1
  658. package/dist/nodes/geometry/polygram-node.d.ts +0 -33
  659. package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
  660. package/dist/nodes/geometry/polygram-node.js +0 -52
  661. package/dist/nodes/geometry/polygram-node.js.map +0 -1
  662. package/dist/nodes/geometry/rect-node.d.ts +0 -38
  663. package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
  664. package/dist/nodes/geometry/rect-node.js +0 -56
  665. package/dist/nodes/geometry/rect-node.js.map +0 -1
  666. package/dist/nodes/geometry/shape-node.d.ts +0 -71
  667. package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
  668. package/dist/nodes/geometry/shape-node.js +0 -140
  669. package/dist/nodes/geometry/shape-node.js.map +0 -1
  670. package/dist/nodes/geometry/shape-outline.d.ts +0 -93
  671. package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
  672. package/dist/nodes/geometry/shape-outline.js +0 -470
  673. package/dist/nodes/geometry/shape-outline.js.map +0 -1
  674. package/dist/nodes/index.d.ts +0 -53
  675. package/dist/nodes/index.d.ts.map +0 -1
  676. package/dist/nodes/index.js +0 -35
  677. package/dist/nodes/index.js.map +0 -1
  678. package/dist/nodes/layout/camera-node.d.ts +0 -80
  679. package/dist/nodes/layout/camera-node.d.ts.map +0 -1
  680. package/dist/nodes/layout/camera-node.js +0 -153
  681. package/dist/nodes/layout/camera-node.js.map +0 -1
  682. package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
  683. package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
  684. package/dist/nodes/layout/orbit-camera-node.js +0 -118
  685. package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
  686. package/dist/nodes/layout/rotated-box.d.ts +0 -20
  687. package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
  688. package/dist/nodes/layout/rotated-box.js +0 -76
  689. package/dist/nodes/layout/rotated-box.js.map +0 -1
  690. package/dist/nodes/media/video-node.d.ts +0 -229
  691. package/dist/nodes/media/video-node.d.ts.map +0 -1
  692. package/dist/nodes/media/video-node.js +0 -350
  693. package/dist/nodes/media/video-node.js.map +0 -1
  694. package/dist/nodes/node/declare-paints.d.ts +0 -19
  695. package/dist/nodes/node/declare-paints.d.ts.map +0 -1
  696. package/dist/nodes/node/declare-paints.js +0 -27
  697. package/dist/nodes/node/declare-paints.js.map +0 -1
  698. package/dist/nodes/node/node-editor-state.d.ts +0 -53
  699. package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
  700. package/dist/nodes/node/node-editor-state.js +0 -23
  701. package/dist/nodes/node/node-editor-state.js.map +0 -1
  702. package/dist/nodes/node/node-reactive.d.ts +0 -89
  703. package/dist/nodes/node/node-reactive.d.ts.map +0 -1
  704. package/dist/nodes/node/node-reactive.js +0 -135
  705. package/dist/nodes/node/node-reactive.js.map +0 -1
  706. package/dist/nodes/node/node-time.d.ts +0 -39
  707. package/dist/nodes/node/node-time.d.ts.map +0 -1
  708. package/dist/nodes/node/node-time.js +0 -14
  709. package/dist/nodes/node/node-time.js.map +0 -1
  710. package/dist/nodes/node/node-walk.d.ts +0 -46
  711. package/dist/nodes/node/node-walk.d.ts.map +0 -1
  712. package/dist/nodes/node/node-walk.js +0 -74
  713. package/dist/nodes/node/node-walk.js.map +0 -1
  714. package/dist/nodes/node/node.d.ts +0 -445
  715. package/dist/nodes/node/node.d.ts.map +0 -1
  716. package/dist/nodes/node/node.js +0 -745
  717. package/dist/nodes/node/node.js.map +0 -1
  718. package/dist/nodes/node/text-defaults.d.ts +0 -32
  719. package/dist/nodes/node/text-defaults.d.ts.map +0 -1
  720. package/dist/nodes/node/text-defaults.js +0 -37
  721. package/dist/nodes/node/text-defaults.js.map +0 -1
  722. package/dist/nodes/root/canvas2d-node.d.ts +0 -163
  723. package/dist/nodes/root/canvas2d-node.d.ts.map +0 -1
  724. package/dist/nodes/root/canvas2d-node.js +0 -264
  725. package/dist/nodes/root/canvas2d-node.js.map +0 -1
  726. package/dist/nodes/root/provider-node.d.ts +0 -47
  727. package/dist/nodes/root/provider-node.d.ts.map +0 -1
  728. package/dist/nodes/root/provider-node.js +0 -63
  729. package/dist/nodes/root/provider-node.js.map +0 -1
  730. package/dist/nodes/root/theme-provider-node.d.ts +0 -29
  731. package/dist/nodes/root/theme-provider-node.d.ts.map +0 -1
  732. package/dist/nodes/root/theme-provider-node.js +0 -43
  733. package/dist/nodes/root/theme-provider-node.js.map +0 -1
  734. package/dist/nodes/text/default-text-style-node.d.ts +0 -103
  735. package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
  736. package/dist/nodes/text/default-text-style-node.js +0 -146
  737. package/dist/nodes/text/default-text-style-node.js.map +0 -1
  738. package/dist/nodes/text/number-format.d.ts +0 -66
  739. package/dist/nodes/text/number-format.d.ts.map +0 -1
  740. package/dist/nodes/text/number-format.js +0 -227
  741. package/dist/nodes/text/number-format.js.map +0 -1
  742. package/dist/nodes/text/number-node.d.ts +0 -94
  743. package/dist/nodes/text/number-node.d.ts.map +0 -1
  744. package/dist/nodes/text/number-node.js +0 -86
  745. package/dist/nodes/text/number-node.js.map +0 -1
  746. package/dist/nodes/text/number-pattern.d.ts +0 -51
  747. package/dist/nodes/text/number-pattern.d.ts.map +0 -1
  748. package/dist/nodes/text/number-pattern.js +0 -77
  749. package/dist/nodes/text/number-pattern.js.map +0 -1
  750. package/dist/nodes/text/richtext-node.d.ts +0 -68
  751. package/dist/nodes/text/richtext-node.d.ts.map +0 -1
  752. package/dist/nodes/text/richtext-node.js +0 -78
  753. package/dist/nodes/text/richtext-node.js.map +0 -1
  754. package/dist/nodes/text/text-base.d.ts +0 -118
  755. package/dist/nodes/text/text-base.d.ts.map +0 -1
  756. package/dist/nodes/text/text-base.js +0 -153
  757. package/dist/nodes/text/text-base.js.map +0 -1
  758. package/dist/nodes/text/text-layout.d.ts +0 -87
  759. package/dist/nodes/text/text-layout.d.ts.map +0 -1
  760. package/dist/nodes/text/text-layout.js +0 -368
  761. package/dist/nodes/text/text-layout.js.map +0 -1
  762. package/dist/nodes/text/text-node.d.ts +0 -84
  763. package/dist/nodes/text/text-node.d.ts.map +0 -1
  764. package/dist/nodes/text/text-node.js +0 -188
  765. package/dist/nodes/text/text-node.js.map +0 -1
  766. package/dist/nodes/text/text-selection.d.ts +0 -125
  767. package/dist/nodes/text/text-selection.d.ts.map +0 -1
  768. package/dist/nodes/text/text-selection.js +0 -209
  769. package/dist/nodes/text/text-selection.js.map +0 -1
  770. package/dist/nodes/three/camera-nodes.d.ts +0 -109
  771. package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
  772. package/dist/nodes/three/camera-nodes.js +0 -112
  773. package/dist/nodes/three/camera-nodes.js.map +0 -1
  774. package/dist/nodes/three/canvas3d-node.d.ts +0 -295
  775. package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
  776. package/dist/nodes/three/canvas3d-node.js +0 -486
  777. package/dist/nodes/three/canvas3d-node.js.map +0 -1
  778. package/dist/nodes/three/drawable-nodes.d.ts +0 -173
  779. package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
  780. package/dist/nodes/three/drawable-nodes.js +0 -284
  781. package/dist/nodes/three/drawable-nodes.js.map +0 -1
  782. package/dist/nodes/three/environment-nodes.d.ts +0 -106
  783. package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
  784. package/dist/nodes/three/environment-nodes.js +0 -134
  785. package/dist/nodes/three/environment-nodes.js.map +0 -1
  786. package/dist/nodes/three/geometry-nodes.d.ts +0 -197
  787. package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
  788. package/dist/nodes/three/geometry-nodes.js +0 -322
  789. package/dist/nodes/three/geometry-nodes.js.map +0 -1
  790. package/dist/nodes/three/grid-geometry3d.d.ts +0 -62
  791. package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
  792. package/dist/nodes/three/grid-geometry3d.js +0 -114
  793. package/dist/nodes/three/grid-geometry3d.js.map +0 -1
  794. package/dist/nodes/three/group3d.d.ts +0 -23
  795. package/dist/nodes/three/group3d.d.ts.map +0 -1
  796. package/dist/nodes/three/group3d.js +0 -21
  797. package/dist/nodes/three/group3d.js.map +0 -1
  798. package/dist/nodes/three/light-nodes.d.ts +0 -120
  799. package/dist/nodes/three/light-nodes.d.ts.map +0 -1
  800. package/dist/nodes/three/light-nodes.js +0 -173
  801. package/dist/nodes/three/light-nodes.js.map +0 -1
  802. package/dist/nodes/three/mesh3d.d.ts +0 -117
  803. package/dist/nodes/three/mesh3d.d.ts.map +0 -1
  804. package/dist/nodes/three/mesh3d.js +0 -147
  805. package/dist/nodes/three/mesh3d.js.map +0 -1
  806. package/dist/nodes/three/node3d.d.ts +0 -230
  807. package/dist/nodes/three/node3d.d.ts.map +0 -1
  808. package/dist/nodes/three/node3d.js +0 -337
  809. package/dist/nodes/three/node3d.js.map +0 -1
  810. package/dist/render/descriptors/latex.d.ts +0 -6
  811. package/dist/render/descriptors/latex.d.ts.map +0 -1
  812. package/dist/render/descriptors/latex.js +0 -2
  813. package/dist/render/descriptors/latex.js.map +0 -1
  814. package/dist/tween/seekable.d.ts +0 -81
  815. package/dist/tween/seekable.d.ts.map +0 -1
  816. package/dist/tween/seekable.js +0 -137
  817. package/dist/tween/seekable.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"posterize.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/posterize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAe/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,4DAA4D;IAC5D,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACxB,MAAM,EAAE;QACJ,qDAAqD;QACrD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KACtE;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAgC,YAAY,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * After Effects-style Posterize.\r\n *\r\n * Quantizes each colour channel into `levels` evenly-spaced brightness steps, so\r\n * smooth gradients collapse into flat bands. `levels` is the number of tones per\r\n * channel (matching AE's single \"Level\" parameter): 2 → pure two-tone per\r\n * channel, higher values keep more detail. Below 2 there is nothing to band, so\r\n * the effect is a no-op.\r\n */\r\nexport interface PosterizeEffect extends ModedEffect, EffectFields<typeof posterizeSpec.params> {\r\n type: \"posterize\";\r\n}\r\n\r\n/** The {@link PosterizeEffect} spec: its parameters, defaults and ranges. */\r\nexport const posterizeSpec = defineEffect({\r\n type: \"posterize\",\r\n group: \"color\",\r\n // Reads its source texel-by-texel through a banding shader.\r\n surface: \"shader\",\r\n scalar: \"levels\",\r\n neutral: { levels: 255 },\r\n params: {\r\n /** Number of brightness levels per channel (≥ 2). */\r\n levels: param.number({ default: 4, min: 2, step: 1, inline: true }),\r\n },\r\n});\r\n\r\nexport const posterizeEffect: EffectData<PosterizeEffect> = effectDataOf(posterizeSpec);\r\n"]}
1
+ {"version":3,"file":"posterize.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/posterize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAe/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,4DAA4D;IAC5D,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACxB,MAAM,EAAE;QACJ,qDAAqD;QACrD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KACtE;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAgC,YAAY,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * After Effects-style Posterize.\n *\n * Quantizes each colour channel into `levels` evenly-spaced brightness steps, so\n * smooth gradients collapse into flat bands. `levels` is the number of tones per\n * channel (matching AE's single \"Level\" parameter): 2 → pure two-tone per\n * channel, higher values keep more detail. Below 2 there is nothing to band, so\n * the effect is a no-op.\n */\nexport interface PosterizeEffect extends ModedEffect, EffectFields<typeof posterizeSpec.params> {\n type: \"posterize\";\n}\n\n/** The {@link PosterizeEffect} spec: its parameters, defaults and ranges. */\nexport const posterizeSpec = defineEffect({\n type: \"posterize\",\n group: \"color\",\n // Reads its source texel-by-texel through a banding shader.\n surface: \"shader\",\n scalar: \"levels\",\n neutral: { levels: 255 },\n params: {\n /** Number of brightness levels per channel (≥ 2). */\n levels: param.number({ default: 4, min: 2, step: 1, inline: true }),\n },\n});\n\nexport const posterizeEffect: EffectData<PosterizeEffect> = effectDataOf(posterizeSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"progressive-blur.js","sourceRoot":"","sources":["../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rC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACrG,mEAAmE;QACnE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC7E,wDAAwD;QACxD,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACjG,4FAA4F;QAC5F,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;KACtH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * How the blur ramp is laid out across the node.\r\n *\r\n * - `\"linear\"` — the ramp runs along `angle`, so the blur builds from one edge\r\n * toward the other. The gradient/fade-to-blur strip under a toolbar or over\r\n * the bottom of a hero image.\r\n * - `\"radial\"` — the ramp runs outward from `center`, so the middle stays sharp\r\n * and the surround softens. A cheap depth-of-field / tilt-shift.\r\n */\r\nexport type ProgressiveBlurShape = \"linear\" | \"radial\";\r\n\r\n/**\r\n * Blur whose radius *ramps* across the node instead of being uniform.\r\n *\r\n * A plain blur is a constant; this interpolates from `startRadius` to `radius`\r\n * between `start` and `end` along the ramp, which is what makes content appear\r\n * to dissolve into softness rather than simply being out of focus.\r\n *\r\n * **In `mode: 'backdrop'` this is the frosted panel with a falloff** — the\r\n * translucent bar whose blur fades out at its edge instead of stopping at a hard\r\n * line. That is the case a plain backdrop blur cannot express, and the reason\r\n * this effect exists.\r\n *\r\n * Cost scales with `samples`, which are spent on the *widest* part of the ramp;\r\n * pixels below `start` return the source untouched without sampling at all.\r\n */\r\nexport interface ProgressiveBlurEffect extends ModedEffect, EffectFields<typeof progressiveBlurSpec.params> {\r\n type: \"progressiveBlur\";\r\n}\r\n\r\n/** The {@link ProgressiveBlurEffect} spec: its parameters, defaults and ranges. */\r\nexport const progressiveBlurSpec = defineEffect({\r\n type: \"progressiveBlur\",\r\n group: \"blur\",\r\n // Averages a neighbourhood whose extent varies per pixel.\r\n surface: \"shader\",\r\n scalar: \"radius\",\r\n neutral: { radius: 0 },\r\n params: {\r\n /** Blur spread in px at the far end of the ramp. */\r\n radius: param.number({ default: 24, min: 0, unit: \"px\", label: \"endBlur\", order: 2 }),\r\n /** Blur spread in px at the near end of the ramp (0: sharp, what it did before the field existed). */\r\n startRadius: param.number({ default: 0, min: 0, unit: \"px\", label: \"startBlur\", order: 1 }),\r\n /** Ramp layout. */\r\n shape: param.choice([\"linear\", \"radial\"] satisfies ProgressiveBlurShape[], { default: \"linear\", control: \"segmented\", label: \"rampShape\", optionsLabel: \"rampShape\", order: 0 }),\r\n /** 0–1 where the blur starts building. */\r\n start: param.number({ default: 0, min: -0.5, max: 1.5, control: \"slider\", label: \"rampStart\", order: 3 }),\r\n /** 0–1 where it reaches `radius`. */\r\n end: param.number({ default: 1, min: -0.5, max: 1.5, control: \"slider\", label: \"rampEnd\", order: 4 }),\r\n /** Ramp direction in degrees; 0 = left-to-right, 90 = downward. */\r\n angle: param.number({ default: 90, unit: \"deg\", control: \"angle\", order: 5 }),\r\n /** Ramp origin in 0–1 layer coords. `'radial'` only. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", order: 6 }),\r\n /** Taps averaged at full radius, 2–32. A fractional count would just round, so it snaps. */\r\n samples: param.number({ default: 20, min: 2, max: 32, step: 1, lerp: \"step\", hidden: true, order: 7, initial: 16 }),\r\n },\r\n});\r\n\r\nexport const progressiveBlurEffect: EffectData<ProgressiveBlurEffect> = effectDataOf(progressiveBlurSpec);\r\n"]}
1
+ {"version":3,"file":"progressive-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/progressive-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAgCvF,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,MAAM;IACb,0DAA0D;IAC1D,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,oDAAoD;QACpD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACrF,sGAAsG;QACtG,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC3F,mBAAmB;Q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AAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;KACtH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * How the blur ramp is laid out across the node.\n *\n * - `\"linear\"` — the ramp runs along `angle`, so the blur builds from one edge\n * toward the other. The gradient/fade-to-blur strip under a toolbar or over\n * the bottom of a hero image.\n * - `\"radial\"` — the ramp runs outward from `center`, so the middle stays sharp\n * and the surround softens. A cheap depth-of-field / tilt-shift.\n */\nexport type ProgressiveBlurShape = \"linear\" | \"radial\";\n\n/**\n * Blur whose radius *ramps* across the node instead of being uniform.\n *\n * A plain blur is a constant; this interpolates from `startRadius` to `radius`\n * between `start` and `end` along the ramp, which is what makes content appear\n * to dissolve into softness rather than simply being out of focus.\n *\n * **In `mode: 'backdrop'` this is the frosted panel with a falloff** — the\n * translucent bar whose blur fades out at its edge instead of stopping at a hard\n * line. That is the case a plain backdrop blur cannot express, and the reason\n * this effect exists.\n *\n * Cost scales with `samples`, which are spent on the *widest* part of the ramp;\n * pixels below `start` return the source untouched without sampling at all.\n */\nexport interface ProgressiveBlurEffect extends ModedEffect, EffectFields<typeof progressiveBlurSpec.params> {\n type: \"progressiveBlur\";\n}\n\n/** The {@link ProgressiveBlurEffect} spec: its parameters, defaults and ranges. */\nexport const progressiveBlurSpec = defineEffect({\n type: \"progressiveBlur\",\n group: \"blur\",\n // Averages a neighbourhood whose extent varies per pixel.\n surface: \"shader\",\n scalar: \"radius\",\n neutral: { radius: 0 },\n params: {\n /** Blur spread in px at the far end of the ramp. */\n radius: param.number({ default: 24, min: 0, unit: \"px\", label: \"endBlur\", order: 2 }),\n /** Blur spread in px at the near end of the ramp (0: sharp, what it did before the field existed). */\n startRadius: param.number({ default: 0, min: 0, unit: \"px\", label: \"startBlur\", order: 1 }),\n /** Ramp layout. */\n shape: param.choice([\"linear\", \"radial\"] satisfies ProgressiveBlurShape[], { default: \"linear\", control: \"segmented\", label: \"rampShape\", optionsLabel: \"rampShape\", order: 0 }),\n /** 0–1 where the blur starts building. */\n start: param.number({ default: 0, min: -0.5, max: 1.5, control: \"slider\", label: \"rampStart\", order: 3 }),\n /** 0–1 where it reaches `radius`. */\n end: param.number({ default: 1, min: -0.5, max: 1.5, control: \"slider\", label: \"rampEnd\", order: 4 }),\n /** Ramp direction in degrees; 0 = left-to-right, 90 = downward. */\n angle: param.number({ default: 90, unit: \"deg\", control: \"angle\", order: 5 }),\n /** Ramp origin in 0–1 layer coords. `'radial'` only. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", order: 6 }),\n /** Taps averaged at full radius, 2–32. A fractional count would just round, so it snaps. */\n samples: param.number({ default: 20, min: 2, max: 32, step: 1, lerp: \"step\", hidden: true, order: 7, initial: 16 }),\n },\n});\n\nexport const progressiveBlurEffect: EffectData<ProgressiveBlurEffect> = effectDataOf(progressiveBlurSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"radial-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/radial-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAuBvF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,MAAM;IACb,oCAAoC;IACpC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,yBAAyB;QACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACjG,8DAA8D;QAC9D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,CAA6B,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvJ,uCAAuC;QACvC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACjG,qEAAqE;QACrE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACzG;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Which way the samples are smeared around {@link RadialBlurEffect.center}.\r\n *\r\n * - `\"zoom\"` — along the radius: a rush toward or away from the centre.\r\n * - `\"spin\"` — along the tangent: rotational motion about the centre.\r\n *\r\n * (After Effects calls this the effect's \"Type\"; here that name belongs to the\r\n * effect discriminator, so the field is `style`.)\r\n */\r\nexport type RadialBlurStyle = \"zoom\" | \"spin\";\r\n\r\n/**\r\n * After Effects' Radial Blur — the source is sampled repeatedly along a path\r\n * that radiates from (`zoom`) or circles (`spin`) a centre point, and the taps\r\n * are averaged. The centre stays sharp and the smear grows with distance, which\r\n * is what makes it read as speed rather than as softness.\r\n */\r\nexport interface RadialBlurEffect extends ModedEffect, EffectFields<typeof radialBlurSpec.params> {\r\n type: \"radialBlur\";\r\n}\r\n\r\n/** The {@link RadialBlurEffect} spec: its parameters, defaults and ranges. */\r\nexport const radialBlurSpec = defineEffect({\r\n type: \"radialBlur\",\r\n group: \"blur\",\r\n // Resamples along a path per pixel.\r\n surface: \"shader\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** Smear length, 0–1. */\r\n amount: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true, order: 1 }),\r\n /** Radial rush (`'zoom'`) or rotational streak (`'spin'`). */\r\n style: param.choice([\"zoom\", \"spin\"] satisfies RadialBlurStyle[], { default: \"zoom\", control: \"segmented\", optionsLabel: \"radialBlurStyle\", order: 0 }),\r\n /** Blur centre in 0–1 layer coords. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", order: 2 }),\r\n /** Taps averaged per pixel (max 32). A quality knob, so it snaps. */\r\n samples: param.number({ default: 16, min: 2, max: 32, step: 1, lerp: \"step\", hidden: true, order: 3 }),\r\n },\r\n});\r\n\r\nexport const radialBlurEffect: EffectData<RadialBlurEffect> = effectDataOf(radialBlurSpec);\r\n"]}
1
+ {"version":3,"file":"radial-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/radial-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAuBvF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,MAAM;IACb,oCAAoC;IACpC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,yBAAyB;QACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACjG,8DAA8D;QAC9D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,CAA6B,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvJ,uCAAuC;QACvC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACjG,qEAAqE;QACrE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACzG;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Which way the samples are smeared around {@link RadialBlurEffect.center}.\n *\n * - `\"zoom\"` — along the radius: a rush toward or away from the centre.\n * - `\"spin\"` — along the tangent: rotational motion about the centre.\n *\n * (After Effects calls this the effect's \"Type\"; here that name belongs to the\n * effect discriminator, so the field is `style`.)\n */\nexport type RadialBlurStyle = \"zoom\" | \"spin\";\n\n/**\n * After Effects' Radial Blur — the source is sampled repeatedly along a path\n * that radiates from (`zoom`) or circles (`spin`) a centre point, and the taps\n * are averaged. The centre stays sharp and the smear grows with distance, which\n * is what makes it read as speed rather than as softness.\n */\nexport interface RadialBlurEffect extends ModedEffect, EffectFields<typeof radialBlurSpec.params> {\n type: \"radialBlur\";\n}\n\n/** The {@link RadialBlurEffect} spec: its parameters, defaults and ranges. */\nexport const radialBlurSpec = defineEffect({\n type: \"radialBlur\",\n group: \"blur\",\n // Resamples along a path per pixel.\n surface: \"shader\",\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** Smear length, 0–1. */\n amount: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true, order: 1 }),\n /** Radial rush (`'zoom'`) or rotational streak (`'spin'`). */\n style: param.choice([\"zoom\", \"spin\"] satisfies RadialBlurStyle[], { default: \"zoom\", control: \"segmented\", optionsLabel: \"radialBlurStyle\", order: 0 }),\n /** Blur centre in 0–1 layer coords. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", order: 2 }),\n /** Taps averaged per pixel (max 32). A quality knob, so it snaps. */\n samples: param.number({ default: 16, min: 2, max: 32, step: 1, lerp: \"step\", hidden: true, order: 3 }),\n },\n});\n\nexport const radialBlurEffect: EffectData<RadialBlurEffect> = effectDataOf(radialBlurSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rgb-shift.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/rgb-shift.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAkB/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,QAAQ;IACf,gDAAgD;IAChD,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;IAC7E,MAAM,EAAE;QACJ,8BAA8B;QAC9B,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QAC5E,gCAAgC;QAChC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAChF,+BAA+B;QAC/B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAClF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAA+B,YAAY,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Per-channel spatial offset — the red/green/blue planes pulled apart along\r\n * independent vectors.\r\n *\r\n * Where `chromaticAberration` models a *lens*, so its fringing is symmetric and\r\n * driven by one distance and angle, this is the digital-artefact version: each\r\n * channel is displaced wherever you point it, including all three differently.\r\n * That freedom is what makes it the RGB-tear component of a glitch, and it is\r\n * why the two effects coexist rather than one subsuming the other.\r\n *\r\n * Offsets are in px and scale with the node, like every other px option.\r\n */\r\nexport interface RgbShiftEffect extends ModedEffect, EffectFields<typeof rgbShiftSpec.params> {\r\n type: \"rgbShift\";\r\n}\r\n\r\n/** The {@link RgbShiftEffect} spec: its parameters, defaults and ranges. */\r\nexport const rgbShiftSpec = defineEffect({\r\n type: \"rgbShift\",\r\n group: \"glitch\",\r\n // Samples each channel at a different position.\r\n surface: \"shader\",\r\n neutral: { red: { x: 0, y: 0 }, green: { x: 0, y: 0 }, blue: { x: 0, y: 0 } },\r\n params: {\r\n /** Red plane offset in px. */\r\n red: param.vec2({ default: { x: 4, y: 0 }, unit: \"px\", label: \"redOffset\" }),\r\n /** Green plane offset in px. */\r\n green: param.vec2({ default: { x: 0, y: 0 }, unit: \"px\", label: \"greenOffset\" }),\r\n /** Blue plane offset in px. */\r\n blue: param.vec2({ default: { x: -4, y: 0 }, unit: \"px\", label: \"blueOffset\" }),\r\n },\r\n});\r\n\r\nexport const rgbShiftEffect: EffectData<RgbShiftEffect> = effectDataOf(rgbShiftSpec);\r\n"]}
1
+ {"version":3,"file":"rgb-shift.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/rgb-shift.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAkB/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,QAAQ;IACf,gDAAgD;IAChD,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;IAC7E,MAAM,EAAE;QACJ,8BAA8B;QAC9B,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QAC5E,gCAAgC;QAChC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAChF,+BAA+B;QAC/B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAClF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAA+B,YAAY,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Per-channel spatial offset — the red/green/blue planes pulled apart along\n * independent vectors.\n *\n * Where `chromaticAberration` models a *lens*, so its fringing is symmetric and\n * driven by one distance and angle, this is the digital-artefact version: each\n * channel is displaced wherever you point it, including all three differently.\n * That freedom is what makes it the RGB-tear component of a glitch, and it is\n * why the two effects coexist rather than one subsuming the other.\n *\n * Offsets are in px and scale with the node, like every other px option.\n */\nexport interface RgbShiftEffect extends ModedEffect, EffectFields<typeof rgbShiftSpec.params> {\n type: \"rgbShift\";\n}\n\n/** The {@link RgbShiftEffect} spec: its parameters, defaults and ranges. */\nexport const rgbShiftSpec = defineEffect({\n type: \"rgbShift\",\n group: \"glitch\",\n // Samples each channel at a different position.\n surface: \"shader\",\n neutral: { red: { x: 0, y: 0 }, green: { x: 0, y: 0 }, blue: { x: 0, y: 0 } },\n params: {\n /** Red plane offset in px. */\n red: param.vec2({ default: { x: 4, y: 0 }, unit: \"px\", label: \"redOffset\" }),\n /** Green plane offset in px. */\n green: param.vec2({ default: { x: 0, y: 0 }, unit: \"px\", label: \"greenOffset\" }),\n /** Blue plane offset in px. */\n blue: param.vec2({ default: { x: -4, y: 0 }, unit: \"px\", label: \"blueOffset\" }),\n },\n});\n\nexport const rgbShiftEffect: EffectData<RgbShiftEffect> = effectDataOf(rgbShiftSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scanlines.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/scanlines.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAa/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,SAAS;IAChB,qDAAqD;IACrD,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,2CAA2C;QAC3C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACnE,qDAAqD;QACrD,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACtF,oCAAoC;QACpC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACnG,iEAAiE;QACjE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC1D,6CAA6C;QAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC/E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAgC,YAAY,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * CRT scanlines — periodic dark bands across the content.\r\n *\r\n * `offset` scrolls the band pattern; animating it past `spacing` produces the\r\n * slow vertical roll of a mistuned display, and it wraps, so a linear tween of\r\n * `offset` loops seamlessly.\r\n */\r\nexport interface ScanlinesEffect extends ModedEffect, EffectFields<typeof scanlinesSpec.params> {\r\n type: \"scanlines\";\r\n}\r\n\r\n/** The {@link ScanlinesEffect} spec: its parameters, defaults and ranges. */\r\nexport const scanlinesSpec = defineEffect({\r\n type: \"scanlines\",\r\n group: \"stylize\",\r\n // The band a pixel falls in depends on its position.\r\n surface: \"shader\",\r\n scalar: \"darkness\",\r\n neutral: { darkness: 0 },\r\n params: {\r\n /** Distance between band centres in px. */\r\n spacing: param.number({ default: 4, min: 1, unit: \"px\", order: 1 }),\r\n /** 0–1 share of each period the dark band covers. */\r\n thickness: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", order: 2 }),\r\n /** 0–1 how far the bands darken. */\r\n darkness: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true, order: 0 }),\r\n /** Band offset in px — animate to roll the pattern; it wraps. */\r\n offset: param.number({ default: 0, unit: \"px\", order: 3 }),\r\n /** Band angle in degrees; 0 = horizontal. */\r\n angle: param.number({ default: 0, unit: \"deg\", control: \"angle\", order: 4 }),\r\n },\r\n});\r\n\r\nexport const scanlinesEffect: EffectData<ScanlinesEffect> = effectDataOf(scanlinesSpec);\r\n"]}
1
+ {"version":3,"file":"scanlines.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/scanlines.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAa/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,SAAS;IAChB,qDAAqD;IACrD,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,2CAA2C;QAC3C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACnE,qDAAqD;QACrD,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACtF,oCAAoC;QACpC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACnG,iEAAiE;QACjE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC1D,6CAA6C;QAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC/E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAgC,YAAY,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * CRT scanlines — periodic dark bands across the content.\n *\n * `offset` scrolls the band pattern; animating it past `spacing` produces the\n * slow vertical roll of a mistuned display, and it wraps, so a linear tween of\n * `offset` loops seamlessly.\n */\nexport interface ScanlinesEffect extends ModedEffect, EffectFields<typeof scanlinesSpec.params> {\n type: \"scanlines\";\n}\n\n/** The {@link ScanlinesEffect} spec: its parameters, defaults and ranges. */\nexport const scanlinesSpec = defineEffect({\n type: \"scanlines\",\n group: \"stylize\",\n // The band a pixel falls in depends on its position.\n surface: \"shader\",\n scalar: \"darkness\",\n neutral: { darkness: 0 },\n params: {\n /** Distance between band centres in px. */\n spacing: param.number({ default: 4, min: 1, unit: \"px\", order: 1 }),\n /** 0–1 share of each period the dark band covers. */\n thickness: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", order: 2 }),\n /** 0–1 how far the bands darken. */\n darkness: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true, order: 0 }),\n /** Band offset in px — animate to roll the pattern; it wraps. */\n offset: param.number({ default: 0, unit: \"px\", order: 3 }),\n /** Band angle in degrees; 0 = horizontal. */\n angle: param.number({ default: 0, unit: \"deg\", control: \"angle\", order: 4 }),\n },\n});\n\nexport const scanlinesEffect: EffectData<ScanlinesEffect> = effectDataOf(scanlinesSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scatter.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/scatter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,QAAQ;IACf,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E,2EAA2E;IAC3E,kCAAkC;IAClC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,yCAAyC;QACzC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACzE,uCAAuC;QACvC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;KACxF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\nexport interface ScatterEffect extends ModedEffect, EffectFields<typeof scatterSpec.params> {\r\n type: \"scatter\";\r\n}\r\n\r\n/** The {@link ScatterEffect} spec: its parameters, defaults and ranges. */\r\nexport const scatterSpec = defineEffect({\r\n type: \"scatter\",\r\n group: \"glitch\",\r\n // Displaces each pixel by a hash of its position, so it needs random access\r\n // to its source. It was realised as a displacement-map ImageFilter until the\r\n // filter path's layer snapping was found to re-roll the field whenever the\r\n // node stood on a fractional pixel — see the renderer's `scatter` handler,\r\n // which carries the full account.\r\n surface: \"shader\",\r\n scalar: \"strength\",\r\n neutral: { strength: 0 },\r\n params: {\r\n /** Maximum random pixel displacement. */\r\n strength: param.number({ default: 10, min: 0, unit: \"px\", inline: true }),\r\n /** Axis pixels are scattered along. */\r\n axis: param.axis({ default: \"both\", label: \"direction\", optionsLabel: \"effectAxis\" }),\r\n },\r\n});\r\n\r\nexport const scatterEffect: EffectData<ScatterEffect> = effectDataOf(scatterSpec);\r\n"]}
1
+ {"version":3,"file":"scatter.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/scatter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,QAAQ;IACf,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E,2EAA2E;IAC3E,kCAAkC;IAClC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,yCAAyC;QACzC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACzE,uCAAuC;QACvC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;KACxF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\nexport interface ScatterEffect extends ModedEffect, EffectFields<typeof scatterSpec.params> {\n type: \"scatter\";\n}\n\n/** The {@link ScatterEffect} spec: its parameters, defaults and ranges. */\nexport const scatterSpec = defineEffect({\n type: \"scatter\",\n group: \"glitch\",\n // Displaces each pixel by a hash of its position, so it needs random access\n // to its source. It was realised as a displacement-map ImageFilter until the\n // filter path's layer snapping was found to re-roll the field whenever the\n // node stood on a fractional pixel — see the renderer's `scatter` handler,\n // which carries the full account.\n surface: \"shader\",\n scalar: \"strength\",\n neutral: { strength: 0 },\n params: {\n /** Maximum random pixel displacement. */\n strength: param.number({ default: 10, min: 0, unit: \"px\", inline: true }),\n /** Axis pixels are scattered along. */\n axis: param.axis({ default: \"both\", label: \"direction\", optionsLabel: \"effectAxis\" }),\n },\n});\n\nexport const scatterEffect: EffectData<ScatterEffect> = effectDataOf(scatterSpec);\n"]}
@@ -118,12 +118,12 @@ export declare const shaderSpec: import("../spec.js").EffectSpec<"shader", {
118
118
  }> & {
119
119
  kind: "text";
120
120
  };
121
- readonly blendMode: import("../spec.js").EffectParamDef<"color" | "hue" | "saturation" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "luminosity" | "normal", "color" | "hue" | "saturation" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "luminosity" | "normal"> & NoInfer<{
121
+ readonly blendMode: import("../spec.js").EffectParamDef<"color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal", "color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal"> & NoInfer<{
122
122
  readonly optional: true;
123
123
  readonly optionsLabel: "blendMode";
124
124
  }> & {
125
125
  kind: "enum";
126
- options: readonly ("color" | "hue" | "saturation" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "luminosity" | "normal")[];
126
+ options: readonly ("color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal")[];
127
127
  };
128
128
  }>;
129
129
  export declare const shaderEffect: EffectData<ShaderEffect>;
@@ -1 +1 @@
1
- {"version":3,"file":"shader.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/shader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,GAGtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAuB,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoE/E,MAAM,WAAW,GAAqG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAEnI;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,kEAAkE;IAClE,OAAO,EAAE,IAAI;IACb,MAAM,EAAE;QACJ,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,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,KAAK,CAAC,CAAC,QAAQ;QACzB,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ;QACzB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;QACjB,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS;QAC3B,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACrF,oFAAoF;IACpF,OAAO,EAAE,CAAC,MAAoB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;CACxF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC,UAAU,CAAwC,CAAC","sourcesContent":["import { BlendModes, type BlendMode } from \"../../fill/blend\";\r\nimport type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport {\r\n lerpUniformRecord,\r\n normalizeUniforms,\r\n uniformRecordsEqual,\r\n type ShaderUniform,\r\n type ShaderUniformRecord,\r\n} from \"../../shaders/uniforms\";\r\nimport { shaderContractOf, type ShaderLanguage } from \"../../shaders/language\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * A custom shader, classified by the shared {@link EffectMode}:\r\n *\r\n * - `'backdrop'`: `sample_src` reads a snapshot of the canvas content beneath\r\n * the node. For magnification, distortion, ripple. The result replaces the\r\n * backdrop within the node's silhouette clip.\r\n *\r\n * - `'foreground'` (the default): `sample_src` reads the node's own layer, and\r\n * the output replaces it, or composites onto it with {@link blendMode}.\r\n *\r\n * Named for the paint it is the sibling of: this is the same act as a `shader`\r\n * **fill**, on a layer instead of inside a path.\r\n */\r\nexport interface ShaderEffect extends ModedEffect {\r\n type: \"shader\";\r\n /**\r\n * The program. In WGSL it defines `fn effect(in: EffectIn) -> vec4f`\r\n * (premultiplied), reads its input with `sample_src(uv)` /\r\n * `sample_src_px(px)` — the node's layer, or in `'backdrop'` mode what lies\r\n * beneath it — and its uniforms as `u`, the `struct Params` it declares.\r\n */\r\n source: string;\r\n /** The language `source` is written in; WGSL when absent. */\r\n language?: ShaderLanguage;\r\n /** WGSL only: the contract version it is written against; `resolve` stamps `WGSL_CONTRACT` when absent. */\r\n contract?: number;\r\n /**\r\n * How far past the node's box (logical px) a WGSL effect may draw — a glow,\r\n * a ripple that spills. The layer it runs over grows by it. Default 0.\r\n */\r\n reach?: number;\r\n /**\r\n * Uniform values, by name. Values lerp component-wise.\r\n *\r\n * The positional `[{ name, value }]` array older documents carry is still\r\n * accepted and normalised on the way in; both are bound by name.\r\n */\r\n uniforms: ShaderUniformRecord | ShaderUniform[];\r\n /**\r\n * The shader pack this was built from, when it was built from one.\r\n *\r\n * **Reserved, and carried rather than read.** A pack resolves to a plain\r\n * uniform record before it reaches here, so nothing in the render path needs\r\n * this — the frame is identical with or without it. What it exists for is the\r\n * trip back: a document stores resolved uniforms, and without a reference to\r\n * the pack a host reopening a saved scene has a set of numbers and no way to\r\n * know which of them were `twist` and `ink`, so the property panel it drew\r\n * when the shader was applied cannot be drawn again.\r\n *\r\n * An id naming a pack that is not registered is **not** an error: the shader\r\n * still renders, because the uniforms it needs are already in the document.\r\n * The host simply cannot offer the panel, which is the honest degradation —\r\n * refusing to render a scene because an editor cannot edit it would be the\r\n * wrong way round.\r\n */\r\n shaderId?: string;\r\n /**\r\n * Blend mode used when `mode` is `'foreground'`; the output replaces the\r\n * layer when absent. Ignored for `'backdrop'`.\r\n */\r\n blendMode?: BlendMode;\r\n}\r\n\r\n// The hand-written interface and the spec describe the same fields.\r\ntype ShaderFields = Omit<ShaderEffect, \"type\" | keyof ModedEffect>;\r\ntype SpecFields = EffectFields<typeof shaderSpec.params>;\r\nconst _specAgrees: [ShaderFields extends SpecFields ? true : false, SpecFields extends ShaderFields ? true : false] = [true, true];\r\n\r\n/**\r\n * The {@link ShaderEffect} spec. Its fields are described for a host; its\r\n * interpolation, equality and surface stay hand-written, since they are about a\r\n * program and its uniform record rather than a set of parameters.\r\n */\r\nexport const shaderSpec = defineEffect({\r\n type: \"shader\",\r\n group: \"stylize\",\r\n // An arbitrary user shader: neutrality is the author's to define.\r\n neutral: null,\r\n params: {\r\n source: param.text({ required: true, hidden: true }),\r\n language: {\r\n ...param.choice([\"wgsl\"] satisfies ShaderLanguage[], { optional: true, hidden: true }),\r\n // \"sksl\" is the retired value documents from before WGSL carry: it draws nothing and is reported.\r\n options: [\"wgsl\", \"sksl\"],\r\n },\r\n reach: param.number({ optional: true, min: 0, unit: \"px\", hidden: true }),\r\n uniforms: param.of<ShaderUniformRecord | ShaderUniform[]>()({ kind: \"uniforms\", default: {}, hidden: true }),\r\n shaderId: param.text({ optional: true, hidden: true }),\r\n blendMode: param.choice(BlendModes, { optional: true, optionsLabel: \"blendMode\" }),\r\n },\r\n // Returns the effect untouched when it already states its contract, which\r\n // is what keeps `resolveChainEffects` from copying an array per write.\r\n resolve: (effect: ShaderEffect) => {\r\n const contract = effect.contract ?? shaderContractOf(effect);\r\n return contract === effect.contract ? effect : { ...effect, contract };\r\n },\r\n // The program and what it is blended with snap at the midpoint, as the\r\n // `shader` fill's source does: the source is the compile-cache key, so there\r\n // is no program halfway between two. Only the uniform values interpolate\r\n // (over the union of names), which keeps a same-program tween smooth.\r\n lerp: (from: ShaderEffect, to: ShaderEffect, t: number): ShaderEffect => {\r\n const near = t < 0.5 ? from : to;\r\n return {\r\n type: \"shader\",\r\n source: near.source,\r\n ...(near.language !== undefined ? { language: near.language } : {}),\r\n ...(near.contract !== undefined ? { contract: near.contract } : {}),\r\n ...(from.reach !== undefined || to.reach !== undefined\r\n ? { reach: (from.reach ?? 0) + ((to.reach ?? 0) - (from.reach ?? 0)) * t }\r\n : {}),\r\n ...(near.shaderId !== undefined ? { shaderId: near.shaderId } : {}),\r\n mode: near.mode,\r\n blendMode: near.blendMode,\r\n uniforms: lerpUniformRecord(\r\n normalizeUniforms(from.uniforms),\r\n normalizeUniforms(to.uniforms),\r\n t,\r\n ),\r\n };\r\n },\r\n equals: (a: ShaderEffect, b: ShaderEffect) =>\r\n a.source === b.source &&\r\n a.language === b.language &&\r\n a.contract === b.contract &&\r\n (a.reach ?? 0) === (b.reach ?? 0) &&\r\n a.mode === b.mode &&\r\n a.blendMode === b.blendMode &&\r\n uniformRecordsEqual(normalizeUniforms(a.uniforms), normalizeUniforms(b.uniforms)),\r\n // A backdrop shader resamples what is beneath the node, so it needs a redraw scope.\r\n surface: (effect: ShaderEffect) => (effect.mode === \"backdrop\" ? \"shader\" : \"filter\"),\r\n});\r\n\r\nexport const shaderEffect = effectDataOf(shaderSpec) as unknown as EffectData<ShaderEffect>;\r\n"]}
1
+ {"version":3,"file":"shader.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/shader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,GAGtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAuB,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoE/E,MAAM,WAAW,GAAqG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAEnI;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,kEAAkE;IAClE,OAAO,EAAE,IAAI;IACb,MAAM,EAAE;QACJ,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAA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AAQ;QACzB,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ;QACzB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;QACjB,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS;QAC3B,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACrF,oFAAoF;IACpF,OAAO,EAAE,CAAC,MAAoB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;CACxF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC,UAAU,CAAwC,CAAC","sourcesContent":["import { BlendModes, type BlendMode } from \"../../fill/blend\";\nimport type { ModedEffect, EffectData } from \"../effect-data\";\nimport {\n lerpUniformRecord,\n normalizeUniforms,\n uniformRecordsEqual,\n type ShaderUniform,\n type ShaderUniformRecord,\n} from \"../../shaders/uniforms\";\nimport { shaderContractOf, type ShaderLanguage } from \"../../shaders/language\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * A custom shader, classified by the shared {@link EffectMode}:\n *\n * - `'backdrop'`: `sample_src` reads a snapshot of the canvas content beneath\n * the node. For magnification, distortion, ripple. The result replaces the\n * backdrop within the node's silhouette clip.\n *\n * - `'foreground'` (the default): `sample_src` reads the node's own layer, and\n * the output replaces it, or composites onto it with {@link blendMode}.\n *\n * Named for the paint it is the sibling of: this is the same act as a `shader`\n * **fill**, on a layer instead of inside a path.\n */\nexport interface ShaderEffect extends ModedEffect {\n type: \"shader\";\n /**\n * The program. In WGSL it defines `fn effect(in: EffectIn) -> vec4f`\n * (premultiplied), reads its input with `sample_src(uv)` /\n * `sample_src_px(px)` — the node's layer, or in `'backdrop'` mode what lies\n * beneath it — and its uniforms as `u`, the `struct Params` it declares.\n */\n source: string;\n /** The language `source` is written in; WGSL when absent. */\n language?: ShaderLanguage;\n /** WGSL only: the contract version it is written against; `resolve` stamps `WGSL_CONTRACT` when absent. */\n contract?: number;\n /**\n * How far past the node's box (logical px) a WGSL effect may draw — a glow,\n * a ripple that spills. The layer it runs over grows by it. Default 0.\n */\n reach?: number;\n /**\n * Uniform values, by name. Values lerp component-wise.\n *\n * The positional `[{ name, value }]` array older documents carry is still\n * accepted and normalised on the way in; both are bound by name.\n */\n uniforms: ShaderUniformRecord | ShaderUniform[];\n /**\n * The shader pack this was built from, when it was built from one.\n *\n * **Reserved, and carried rather than read.** A pack resolves to a plain\n * uniform record before it reaches here, so nothing in the render path needs\n * this — the frame is identical with or without it. What it exists for is the\n * trip back: a document stores resolved uniforms, and without a reference to\n * the pack a host reopening a saved scene has a set of numbers and no way to\n * know which of them were `twist` and `ink`, so the property panel it drew\n * when the shader was applied cannot be drawn again.\n *\n * An id naming a pack that is not registered is **not** an error: the shader\n * still renders, because the uniforms it needs are already in the document.\n * The host simply cannot offer the panel, which is the honest degradation —\n * refusing to render a scene because an editor cannot edit it would be the\n * wrong way round.\n */\n shaderId?: string;\n /**\n * Blend mode used when `mode` is `'foreground'`; the output replaces the\n * layer when absent. Ignored for `'backdrop'`.\n */\n blendMode?: BlendMode;\n}\n\n// The hand-written interface and the spec describe the same fields.\ntype ShaderFields = Omit<ShaderEffect, \"type\" | keyof ModedEffect>;\ntype SpecFields = EffectFields<typeof shaderSpec.params>;\nconst _specAgrees: [ShaderFields extends SpecFields ? true : false, SpecFields extends ShaderFields ? true : false] = [true, true];\n\n/**\n * The {@link ShaderEffect} spec. Its fields are described for a host; its\n * interpolation, equality and surface stay hand-written, since they are about a\n * program and its uniform record rather than a set of parameters.\n */\nexport const shaderSpec = defineEffect({\n type: \"shader\",\n group: \"stylize\",\n // An arbitrary user shader: neutrality is the author's to define.\n neutral: null,\n params: {\n source: param.text({ required: true, hidden: true }),\n language: {\n ...param.choice([\"wgsl\"] satisfies ShaderLanguage[], { optional: true, hidden: true }),\n // \"sksl\" is the retired value documents from before WGSL carry: it draws nothing and is reported.\n options: [\"wgsl\", \"sksl\"],\n },\n reach: param.number({ optional: true, min: 0, unit: \"px\", hidden: true }),\n uniforms: param.of<ShaderUniformRecord | ShaderUniform[]>()({ kind: \"uniforms\", default: {}, hidden: true }),\n shaderId: param.text({ optional: true, hidden: true }),\n blendMode: param.choice(BlendModes, { optional: true, optionsLabel: \"blendMode\" }),\n },\n // Returns the effect untouched when it already states its contract, which\n // is what keeps `resolveChainEffects` from copying an array per write.\n resolve: (effect: ShaderEffect) => {\n const contract = effect.contract ?? shaderContractOf(effect);\n return contract === effect.contract ? effect : { ...effect, contract };\n },\n // The program and what it is blended with snap at the midpoint, as the\n // `shader` fill's source does: the source is the compile-cache key, so there\n // is no program halfway between two. Only the uniform values interpolate\n // (over the union of names), which keeps a same-program tween smooth.\n lerp: (from: ShaderEffect, to: ShaderEffect, t: number): ShaderEffect => {\n const near = t < 0.5 ? from : to;\n return {\n type: \"shader\",\n source: near.source,\n ...(near.language !== undefined ? { language: near.language } : {}),\n ...(near.contract !== undefined ? { contract: near.contract } : {}),\n ...(from.reach !== undefined || to.reach !== undefined\n ? { reach: (from.reach ?? 0) + ((to.reach ?? 0) - (from.reach ?? 0)) * t }\n : {}),\n ...(near.shaderId !== undefined ? { shaderId: near.shaderId } : {}),\n mode: near.mode,\n blendMode: near.blendMode,\n uniforms: lerpUniformRecord(\n normalizeUniforms(from.uniforms),\n normalizeUniforms(to.uniforms),\n t,\n ),\n };\n },\n equals: (a: ShaderEffect, b: ShaderEffect) =>\n a.source === b.source &&\n a.language === b.language &&\n a.contract === b.contract &&\n (a.reach ?? 0) === (b.reach ?? 0) &&\n a.mode === b.mode &&\n a.blendMode === b.blendMode &&\n uniformRecordsEqual(normalizeUniforms(a.uniforms), normalizeUniforms(b.uniforms)),\n // A backdrop shader resamples what is beneath the node, so it needs a redraw scope.\n surface: (effect: ShaderEffect) => (effect.mode === \"backdrop\" ? \"shader\" : \"filter\"),\n});\n\nexport const shaderEffect = effectDataOf(shaderSpec) as unknown as EffectData<ShaderEffect>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sharpen.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/sharpen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAiB/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,MAAM;IACb,8CAA8C;IAC9C,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,2BAA2B;QAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrF,kDAAkD;QAClD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;KAC3D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Unsharp mask — the standard sharpen: subtract a blurred copy of the content\r\n * from itself and add the difference back, which exaggerates local contrast at\r\n * edges.\r\n *\r\n * out = c + amount · (c − blur(c, radius))\r\n *\r\n * `radius` sets the scale of detail affected (a small radius crisps fine texture,\r\n * a large one adds \"clarity\" to broad shapes); `amount` sets how hard. Past\r\n * ~2 the classic halo artefact shows up, which is sometimes the point.\r\n */\r\nexport interface SharpenEffect extends ModedEffect, EffectFields<typeof sharpenSpec.params> {\r\n type: \"sharpen\";\r\n}\r\n\r\n/** The {@link SharpenEffect} spec: its parameters, defaults and ranges. */\r\nexport const sharpenSpec = defineEffect({\r\n type: \"sharpen\",\r\n group: \"blur\",\r\n // Convolves a neighbourhood, so it resamples.\r\n surface: \"shader\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** Edge-contrast boost. */\r\n amount: param.number({ default: 1, min: 0, max: 4, control: \"slider\", inline: true }),\r\n /** Radius of the blurred reference, in pixels. */\r\n radius: param.number({ default: 1, min: 0, unit: \"px\" }),\r\n },\r\n});\r\n\r\nexport const sharpenEffect: EffectData<SharpenEffect> = effectDataOf(sharpenSpec);\r\n"]}
1
+ {"version":3,"file":"sharpen.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/sharpen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAiB/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,MAAM;IACb,8CAA8C;IAC9C,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,2BAA2B;QAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrF,kDAAkD;QAClD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;KAC3D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Unsharp mask — the standard sharpen: subtract a blurred copy of the content\n * from itself and add the difference back, which exaggerates local contrast at\n * edges.\n *\n * out = c + amount · (c − blur(c, radius))\n *\n * `radius` sets the scale of detail affected (a small radius crisps fine texture,\n * a large one adds \"clarity\" to broad shapes); `amount` sets how hard. Past\n * ~2 the classic halo artefact shows up, which is sometimes the point.\n */\nexport interface SharpenEffect extends ModedEffect, EffectFields<typeof sharpenSpec.params> {\n type: \"sharpen\";\n}\n\n/** The {@link SharpenEffect} spec: its parameters, defaults and ranges. */\nexport const sharpenSpec = defineEffect({\n type: \"sharpen\",\n group: \"blur\",\n // Convolves a neighbourhood, so it resamples.\n surface: \"shader\",\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** Edge-contrast boost. */\n amount: param.number({ default: 1, min: 0, max: 4, control: \"slider\", inline: true }),\n /** Radius of the blurred reference, in pixels. */\n radius: param.number({ default: 1, min: 0, unit: \"px\" }),\n },\n});\n\nexport const sharpenEffect: EffectData<SharpenEffect> = effectDataOf(sharpenSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"streak.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/streak.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAa/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,6EAA6E;IAC7E,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;IACzB,MAAM,EAAE;QACJ,+CAA+C;QAC/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACxF,4BAA4B;QAC5B,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC5E,8BAA8B;QAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC1D,6CAA6C;QAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KACrE;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAA6B,YAAY,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Anamorphic glare — a bright pass smeared along one axis and screened back on.\r\n *\r\n * Where `bloom` spreads light equally in all directions, this spreads it along\r\n * `angle` only. That asymmetry is the entire anamorphic look: the horizontal\r\n * flare a wide lens throws off a highlight, rather than a halo around it.\r\n */\r\nexport interface StreakEffect extends ModedEffect, EffectFields<typeof streakSpec.params> {\r\n type: \"streak\";\r\n}\r\n\r\n/** The {@link StreakEffect} spec: its parameters, defaults and ranges. */\r\nexport const streakSpec = defineEffect({\r\n type: \"streak\",\r\n group: \"light\",\r\n // An anisotropic blur of a colour-matrix bright pass — all ImageFilter work.\r\n scalar: \"intensity\",\r\n neutral: { intensity: 0 },\r\n params: {\r\n /** Additive multiplier for the streak pass. */\r\n intensity: param.number({ default: 1, min: 0, max: 3, control: \"slider\", inline: true }),\r\n /** 0–1 luminance cutoff. */\r\n threshold: param.number({ default: 0.7, min: 0, max: 1, control: \"slider\" }),\r\n /** Smear length in pixels. */\r\n length: param.number({ default: 120, min: 0, unit: \"px\" }),\r\n /** Smear axis in degrees; 0 = horizontal. */\r\n angle: param.number({ default: 0, unit: \"deg\", control: \"angle\" }),\r\n },\r\n});\r\n\r\nexport const streakEffect: EffectData<StreakEffect> = effectDataOf(streakSpec);\r\n"]}
1
+ {"version":3,"file":"streak.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/streak.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAa/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,6EAA6E;IAC7E,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;IACzB,MAAM,EAAE;QACJ,+CAA+C;QAC/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACxF,4BAA4B;QAC5B,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC5E,8BAA8B;QAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC1D,6CAA6C;QAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KACrE;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAA6B,YAAY,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Anamorphic glare — a bright pass smeared along one axis and screened back on.\n *\n * Where `bloom` spreads light equally in all directions, this spreads it along\n * `angle` only. That asymmetry is the entire anamorphic look: the horizontal\n * flare a wide lens throws off a highlight, rather than a halo around it.\n */\nexport interface StreakEffect extends ModedEffect, EffectFields<typeof streakSpec.params> {\n type: \"streak\";\n}\n\n/** The {@link StreakEffect} spec: its parameters, defaults and ranges. */\nexport const streakSpec = defineEffect({\n type: \"streak\",\n group: \"light\",\n // An anisotropic blur of a colour-matrix bright pass — all ImageFilter work.\n scalar: \"intensity\",\n neutral: { intensity: 0 },\n params: {\n /** Additive multiplier for the streak pass. */\n intensity: param.number({ default: 1, min: 0, max: 3, control: \"slider\", inline: true }),\n /** 0–1 luminance cutoff. */\n threshold: param.number({ default: 0.7, min: 0, max: 1, control: \"slider\" }),\n /** Smear length in pixels. */\n length: param.number({ default: 120, min: 0, unit: \"px\" }),\n /** Smear axis in degrees; 0 = horizontal. */\n angle: param.number({ default: 0, unit: \"deg\", control: \"angle\" }),\n },\n});\n\nexport const streakEffect: EffectData<StreakEffect> = effectDataOf(streakSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"threshold.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/threshold.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAc/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,uDAAuD;IACvD,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,8DAA8D;IAC9D,OAAO,EAAE,IAAI;IACb,MAAM,EAAE;QACJ,qBAAqB;QACrB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACtF,4EAA4E;QAC5E,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KACjF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAgC,YAAY,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Two-tone cut: every pixel brighter than `level` becomes white, everything\r\n * else black — the stencil / high-contrast look.\r\n *\r\n * `smoothness` widens the cut into a ramp centred on `level`, which both\r\n * anti-aliases the boundary and, at higher values, keeps some midtone\r\n * modelling instead of a pure stencil.\r\n */\r\nexport interface ThresholdEffect extends ModedEffect, EffectFields<typeof thresholdSpec.params> {\r\n type: \"threshold\";\r\n}\r\n\r\n/** The {@link ThresholdEffect} spec: its parameters, defaults and ranges. */\r\nexport const thresholdSpec = defineEffect({\r\n type: \"threshold\",\r\n group: \"color\",\r\n // A non-linear per-pixel remap, drawn as its own pass.\r\n surface: \"shader\",\r\n scalar: \"level\",\r\n // Flattens colour to two tones at every level and smoothness.\r\n neutral: null,\r\n params: {\r\n /** 0–1 cut point. */\r\n level: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true }),\r\n /** 0–1 ramp width around the cut (just enough to anti-alias by default). */\r\n smoothness: param.number({ default: 0.05, min: 0, max: 1, control: \"slider\" }),\r\n },\r\n});\r\n\r\nexport const thresholdEffect: EffectData<ThresholdEffect> = effectDataOf(thresholdSpec);\r\n"]}
1
+ {"version":3,"file":"threshold.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/threshold.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAc/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,uDAAuD;IACvD,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,8DAA8D;IAC9D,OAAO,EAAE,IAAI;IACb,MAAM,EAAE;QACJ,qBAAqB;QACrB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACtF,4EAA4E;QAC5E,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KACjF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAgC,YAAY,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Two-tone cut: every pixel brighter than `level` becomes white, everything\n * else black — the stencil / high-contrast look.\n *\n * `smoothness` widens the cut into a ramp centred on `level`, which both\n * anti-aliases the boundary and, at higher values, keeps some midtone\n * modelling instead of a pure stencil.\n */\nexport interface ThresholdEffect extends ModedEffect, EffectFields<typeof thresholdSpec.params> {\n type: \"threshold\";\n}\n\n/** The {@link ThresholdEffect} spec: its parameters, defaults and ranges. */\nexport const thresholdSpec = defineEffect({\n type: \"threshold\",\n group: \"color\",\n // A non-linear per-pixel remap, drawn as its own pass.\n surface: \"shader\",\n scalar: \"level\",\n // Flattens colour to two tones at every level and smoothness.\n neutral: null,\n params: {\n /** 0–1 cut point. */\n level: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true }),\n /** 0–1 ramp width around the cut (just enough to anti-alias by default). */\n smoothness: param.number({ default: 0.05, min: 0, max: 1, control: \"slider\" }),\n },\n});\n\nexport const thresholdEffect: EffectData<ThresholdEffect> = effectDataOf(thresholdSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"twirl.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/twirl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAkBvF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,8CAA8C;IAC9C,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,yCAAyC;QACzC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAChF,oDAAoD;QACpD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QACvF,yCAAyC;QACzC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;KACjH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Twirl / swirl — the content is rotated about `center` by an amount that falls\r\n * off with distance, so the middle spins and the rim stays put.\r\n *\r\n * The falloff is what separates this from simply rotating the node: rotation is\r\n * rigid, this shears. Everything inside `radius` twists by a fraction of `angle`\r\n * that reaches full strength at the centre and zero at the rim, which is what\r\n * makes it read as a vortex rather than a transform.\r\n *\r\n * Animating `angle` past a full turn keeps winding — there is no wrap point, so\r\n * a long tween produces an ever-tightening spiral.\r\n */\r\nexport interface TwirlEffect extends ModedEffect, EffectFields<typeof twirlSpec.params> {\r\n type: \"twirl\";\r\n}\r\n\r\n/** The {@link TwirlEffect} spec: its parameters, defaults and ranges. */\r\nexport const twirlSpec = defineEffect({\r\n type: \"twirl\",\r\n group: \"distort\",\r\n // Resamples the source at a rotated position.\r\n surface: \"shader\",\r\n scalar: \"angle\",\r\n neutral: { angle: 0 },\r\n params: {\r\n /** Rotation at the centre in degrees. */\r\n angle: param.number({ default: 180, unit: \"deg\", label: \"twist\", inline: true }),\r\n /** 0–1 radius of influence (1 = the whole node). */\r\n radius: param.number({ default: 1, min: 0, max: 1, control: \"slider\", label: \"reach\" }),\r\n /** Vortex centre in 0–1 layer coords. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"vortexCenter\" }),\r\n },\r\n});\r\n\r\nexport const twirlEffect: EffectData<TwirlEffect> = effectDataOf(twirlSpec);\r\n"]}
1
+ {"version":3,"file":"twirl.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/twirl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAkBvF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,8CAA8C;IAC9C,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,yCAAyC;QACzC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAChF,oDAAoD;QACpD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QACvF,yCAAyC;QACzC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;KACjH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Twirl / swirl — the content is rotated about `center` by an amount that falls\n * off with distance, so the middle spins and the rim stays put.\n *\n * The falloff is what separates this from simply rotating the node: rotation is\n * rigid, this shears. Everything inside `radius` twists by a fraction of `angle`\n * that reaches full strength at the centre and zero at the rim, which is what\n * makes it read as a vortex rather than a transform.\n *\n * Animating `angle` past a full turn keeps winding — there is no wrap point, so\n * a long tween produces an ever-tightening spiral.\n */\nexport interface TwirlEffect extends ModedEffect, EffectFields<typeof twirlSpec.params> {\n type: \"twirl\";\n}\n\n/** The {@link TwirlEffect} spec: its parameters, defaults and ranges. */\nexport const twirlSpec = defineEffect({\n type: \"twirl\",\n group: \"distort\",\n // Resamples the source at a rotated position.\n surface: \"shader\",\n scalar: \"angle\",\n neutral: { angle: 0 },\n params: {\n /** Rotation at the centre in degrees. */\n angle: param.number({ default: 180, unit: \"deg\", label: \"twist\", inline: true }),\n /** 0–1 radius of influence (1 = the whole node). */\n radius: param.number({ default: 1, min: 0, max: 1, control: \"slider\", label: \"reach\" }),\n /** Vortex centre in 0–1 layer coords. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"vortexCenter\" }),\n },\n});\n\nexport const twirlEffect: EffectData<TwirlEffect> = effectDataOf(twirlSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vignette.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/vignette.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAc/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,OAAO;IACd,0EAA0E;IAC1E,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,mDAAmD;QACnD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACvF,4EAA4E;QAC5E,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC1E,kEAAkE;QAClE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC3E,iFAAiF;QACjF,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;KAC1D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAA+B,YAAY,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Darkened corners — the lens falloff every photo grade reaches for.\r\n *\r\n * The node box is normalised to a unit ellipse, so the falloff follows the\r\n * node's aspect ratio rather than an off-centre circle. Everything inside\r\n * `radius` is untouched; from there to `radius + softness` the tint ramps in\r\n * with a smoothstep, reaching `amount` at the corners.\r\n */\r\nexport interface VignetteEffect extends ModedEffect, EffectFields<typeof vignetteSpec.params> {\r\n type: \"vignette\";\r\n}\r\n\r\n/** The {@link VignetteEffect} spec: its parameters, defaults and ranges. */\r\nexport const vignetteSpec = defineEffect({\r\n type: \"vignette\",\r\n group: \"light\",\r\n // Needs each pixel's position within the node box to compute its falloff.\r\n surface: \"shader\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** 0–1 tint strength at the very edge. 0 = off. */\r\n amount: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true }),\r\n /** 0–1 normalised radius where the falloff starts (1 ≈ the box corners). */\r\n radius: param.number({ default: 0.75, min: 0, max: 1, control: \"slider\" }),\r\n /** 0–1 width of the ramp; 0 is a hard ring, 1 a long gradient. */\r\n softness: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\" }),\r\n /** Tint colour — black darkens (the classic look), white blows the edges out. */\r\n color: param.color({ default: \"black\", label: \"tint\" }),\r\n },\r\n});\r\n\r\nexport const vignetteEffect: EffectData<VignetteEffect> = effectDataOf(vignetteSpec);\r\n"]}
1
+ {"version":3,"file":"vignette.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/vignette.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAc/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,OAAO;IACd,0EAA0E;IAC1E,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,mDAAmD;QACnD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACvF,4EAA4E;QAC5E,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC1E,kEAAkE;QAClE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC3E,iFAAiF;QACjF,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;KAC1D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAA+B,YAAY,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Darkened corners — the lens falloff every photo grade reaches for.\n *\n * The node box is normalised to a unit ellipse, so the falloff follows the\n * node's aspect ratio rather than an off-centre circle. Everything inside\n * `radius` is untouched; from there to `radius + softness` the tint ramps in\n * with a smoothstep, reaching `amount` at the corners.\n */\nexport interface VignetteEffect extends ModedEffect, EffectFields<typeof vignetteSpec.params> {\n type: \"vignette\";\n}\n\n/** The {@link VignetteEffect} spec: its parameters, defaults and ranges. */\nexport const vignetteSpec = defineEffect({\n type: \"vignette\",\n group: \"light\",\n // Needs each pixel's position within the node box to compute its falloff.\n surface: \"shader\",\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** 0–1 tint strength at the very edge. 0 = off. */\n amount: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", inline: true }),\n /** 0–1 normalised radius where the falloff starts (1 ≈ the box corners). */\n radius: param.number({ default: 0.75, min: 0, max: 1, control: \"slider\" }),\n /** 0–1 width of the ramp; 0 is a hard ring, 1 a long gradient. */\n softness: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\" }),\n /** Tint colour — black darkens (the classic look), white blows the edges out. */\n color: param.color({ default: \"black\", label: \"tint\" }),\n },\n});\n\nexport const vignetteEffect: EffectData<VignetteEffect> = effectDataOf(vignetteSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vintage.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/vintage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IACjC,MAAM,EAAE;QACJ,sDAAsD;QACtD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrF,8DAA8D;QAC9D,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KAC7E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\nexport interface VintageEffect extends ModedEffect, EffectFields<typeof vintageSpec.params> {\r\n type: \"vintage\";\r\n}\r\n\r\n/** The {@link VintageEffect} spec: its parameters, defaults and ranges. */\r\nexport const vintageSpec = defineEffect({\r\n type: \"vintage\",\r\n group: \"color\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0, warmth: 0 },\r\n params: {\r\n /** 0–1: 0 = original, 1 = full sepia + desaturate. */\r\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\r\n /** −1…1: negative = cool/cyan tint, positive = warm/amber. */\r\n warmth: param.number({ default: 0.2, min: -1, max: 1, control: \"slider\" }),\r\n },\r\n});\r\n\r\nexport const vintageEffect: EffectData<VintageEffect> = effectDataOf(vintageSpec);\r\n"]}
1
+ {"version":3,"file":"vintage.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/vintage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IACjC,MAAM,EAAE;QACJ,sDAAsD;QACtD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrF,8DAA8D;QAC9D,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KAC7E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\nexport interface VintageEffect extends ModedEffect, EffectFields<typeof vintageSpec.params> {\n type: \"vintage\";\n}\n\n/** The {@link VintageEffect} spec: its parameters, defaults and ranges. */\nexport const vintageSpec = defineEffect({\n type: \"vintage\",\n group: \"color\",\n scalar: \"amount\",\n neutral: { amount: 0, warmth: 0 },\n params: {\n /** 0–1: 0 = original, 1 = full sepia + desaturate. */\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\n /** −1…1: negative = cool/cyan tint, positive = warm/amber. */\n warmth: param.number({ default: 0.2, min: -1, max: 1, control: \"slider\" }),\n },\n});\n\nexport const vintageEffect: EffectData<VintageEffect> = effectDataOf(vintageSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wave.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/wave.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AA2BvF,wEAAwE;AACxE,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,SAAS;IAChB,8CAA8C;IAC9C,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;IACzB,MAAM,EAAE;QACJ;;;WAGG;QACH,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACnE,qCAAqC;QACrC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC5E,8DAA8D;QAC9D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzD,0CAA0C;QAC1C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAuB,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;QACtI,uEAAuE;QACvE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAClE,wDAAwD;QACxD,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAC/G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * How the wave's crests are laid out.\r\n *\r\n * - `\"linear\"` — parallel crests running across the node, travelling along\r\n * `angle`. Flags, banners, wobbling type, heat shimmer.\r\n * - `\"radial\"` — concentric rings expanding from `center`. The pond-ripple /\r\n * drop-impact look, and the one that reads as *something happened here*.\r\n */\r\nexport type WaveShape = \"linear\" | \"radial\";\r\n\r\n/**\r\n * Sine displacement — the procedural warp that needs no asset.\r\n *\r\n * Pixels are resampled at a position offset by a sine of their own coordinate,\r\n * so the content ripples without anything being generated or loaded. For an\r\n * arbitrary warp driven by an image, see `displace`.\r\n *\r\n * `phase` is in degrees and the sine wraps, so a **linear tween of `phase` over\r\n * 360 loops seamlessly** — that is how you make the wave travel. Animating it is\r\n * the whole point; a static wave reads as a distortion rather than as motion.\r\n */\r\nexport interface WaveEffect extends ModedEffect, EffectFields<typeof waveSpec.params> {\r\n type: \"wave\";\r\n}\r\n\r\n/** The {@link WaveEffect} spec: its parameters, defaults and ranges. */\r\nexport const waveSpec = defineEffect({\r\n type: \"wave\",\r\n group: \"distort\",\r\n // Resamples the source at an offset position.\r\n surface: \"shader\",\r\n scalar: \"amplitude\",\r\n neutral: { amplitude: 0 },\r\n params: {\r\n /**\r\n * Peak displacement in px per axis. A bare number means the Y axis only:\r\n * a wave that displaces along its own direction of travel just smears.\r\n */\r\n amplitude: param.vec2({ default: 20, fromNumber: \"y\", unit: \"px\" }),\r\n /** Distance between crests in px. */\r\n wavelength: param.number({ default: 120, min: 1, unit: \"px\", inline: true }),\r\n /** Phase in degrees; tween over 360 for one seamless loop. */\r\n phase: param.number({ default: 0, step: 1, unit: \"deg\" }),\r\n /** Parallel bands or concentric rings. */\r\n shape: param.choice([\"linear\", \"radial\"] satisfies WaveShape[], { default: \"linear\", label: \"crestShape\", optionsLabel: \"waveShape\" }),\r\n /** Direction the crests advance along, in degrees. `'linear'` only. */\r\n angle: param.number({ default: 0, unit: \"deg\", control: \"angle\" }),\r\n /** Ring origin in 0–1 layer coords. `'radial'` only. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"ringCenter\" }),\r\n },\r\n});\r\n\r\nexport const waveEffect: EffectData<WaveEffect> = effectDataOf(waveSpec);\r\n"]}
1
+ {"version":3,"file":"wave.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/wave.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AA2BvF,wEAAwE;AACxE,MAAM,CAAC,MAAM,Q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AAM,UAAU,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * How the wave's crests are laid out.\n *\n * - `\"linear\"` — parallel crests running across the node, travelling along\n * `angle`. Flags, banners, wobbling type, heat shimmer.\n * - `\"radial\"` — concentric rings expanding from `center`. The pond-ripple /\n * drop-impact look, and the one that reads as *something happened here*.\n */\nexport type WaveShape = \"linear\" | \"radial\";\n\n/**\n * Sine displacement — the procedural warp that needs no asset.\n *\n * Pixels are resampled at a position offset by a sine of their own coordinate,\n * so the content ripples without anything being generated or loaded. For an\n * arbitrary warp driven by an image, see `displace`.\n *\n * `phase` is in degrees and the sine wraps, so a **linear tween of `phase` over\n * 360 loops seamlessly** — that is how you make the wave travel. Animating it is\n * the whole point; a static wave reads as a distortion rather than as motion.\n */\nexport interface WaveEffect extends ModedEffect, EffectFields<typeof waveSpec.params> {\n type: \"wave\";\n}\n\n/** The {@link WaveEffect} spec: its parameters, defaults and ranges. */\nexport const waveSpec = defineEffect({\n type: \"wave\",\n group: \"distort\",\n // Resamples the source at an offset position.\n surface: \"shader\",\n scalar: \"amplitude\",\n neutral: { amplitude: 0 },\n params: {\n /**\n * Peak displacement in px per axis. A bare number means the Y axis only:\n * a wave that displaces along its own direction of travel just smears.\n */\n amplitude: param.vec2({ default: 20, fromNumber: \"y\", unit: \"px\" }),\n /** Distance between crests in px. */\n wavelength: param.number({ default: 120, min: 1, unit: \"px\", inline: true }),\n /** Phase in degrees; tween over 360 for one seamless loop. */\n phase: param.number({ default: 0, step: 1, unit: \"deg\" }),\n /** Parallel bands or concentric rings. */\n shape: param.choice([\"linear\", \"radial\"] satisfies WaveShape[], { default: \"linear\", label: \"crestShape\", optionsLabel: \"waveShape\" }),\n /** Direction the crests advance along, in degrees. `'linear'` only. */\n angle: param.number({ default: 0, unit: \"deg\", control: \"angle\" }),\n /** Ring origin in 0–1 layer coords. `'radial'` only. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"ringCenter\" }),\n },\n});\n\nexport const waveEffect: EffectData<WaveEffect> = effectDataOf(waveSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/attributes/shape/effects/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AA6B3E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9E,uEAAuE;AACvE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgDhF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAa1F,kDAAkD;AAClD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC","sourcesContent":["/** Effect data types for each built-in effect. */\r\nexport type { BlurEffect } from \"./implementations/blur\";\r\nexport type { DirectionalBlurEffect } from \"./implementations/directional-blur\";\r\nexport type { GrayscaleEffect } from \"./implementations/grayscale\";\r\nexport type { PixelateEffect } from \"./implementations/pixelate\";\r\nexport type { BulgeEffect } from \"./implementations/bulge\";\r\nexport type { MagnifyEffect } from \"./implementations/magnify\";\r\nexport type { BloomEffect } from \"./implementations/bloom\";\r\nexport type { VintageEffect } from \"./implementations/vintage\";\r\nexport type { ChromaticAberrationEffect } from \"./implementations/chromatic-aberration\";\r\nexport type { InvertEffect, InvertChannel } from \"./implementations/invert\";\r\nexport type { ScatterEffect } from \"./implementations/scatter\";\r\nexport type { PosterizeEffect } from \"./implementations/posterize\";\r\nexport type { MotionBlurEffect, MotionBlurAlignment } from \"./implementations/motion-blur\";\r\nexport { resolveMotionBlurAlignment } from \"./implementations/motion-blur\";\r\nexport type { ShaderEffect } from \"./implementations/shader\";\r\nexport type { OutlineEffect, OutlinePosition } from \"./implementations/outline\";\r\nexport type { DropShadowEffect } from \"./implementations/drop-shadow\";\r\nexport type { VignetteEffect } from \"./implementations/vignette\";\r\nexport type { GrainEffect } from \"./implementations/grain\";\r\nexport type { SharpenEffect } from \"./implementations/sharpen\";\r\nexport type { EdgesEffect, EdgeKernel } from \"./implementations/edges\";\r\nexport type { ThresholdEffect } from \"./implementations/threshold\";\r\nexport type { RadialBlurEffect, RadialBlurStyle } from \"./implementations/radial-blur\";\r\nexport type { HalftoneEffect, HalftoneShape, HalftoneSeparation } from \"./implementations/halftone\";\r\nexport type { DitherEffect, DitherMatrix, DitherNoise } from \"./implementations/dither\";\r\nexport type { DuotoneEffect } from \"./implementations/duotone\";\r\nexport type { CurvesEffect } from \"./implementations/curves\";\r\nexport type { ColorAdjustmentEffect } from \"./implementations/color-adjustment\";\r\nexport type { RgbShiftEffect } from \"./implementations/rgb-shift\";\r\nexport type { ScanlinesEffect } from \"./implementations/scanlines\";\r\nexport type { BlockDisplaceEffect } from \"./implementations/block-displace\";\r\nexport type { BitCrushEffect, BitCrushPalette } from \"./implementations/bit-crush\";\r\nexport type { AsciiEffect, AsciiCharset } from \"./implementations/ascii\";\r\nexport type { StreakEffect } from \"./implementations/streak\";\r\nexport type { GlowChannel, GlowEffect, GlowLoopStyle, GlowOriginal, GlowTint } from \"./implementations/glow\";\r\nexport type { OilPaintEffect } from \"./implementations/oil-paint\";\r\nexport type { WaveEffect, WaveShape } from \"./implementations/wave\";\r\nexport type { TwirlEffect } from \"./implementations/twirl\";\r\nexport type { ProgressiveBlurEffect, ProgressiveBlurShape } from \"./implementations/progressive-blur\";\r\nexport type { KaleidoscopeEffect } from \"./implementations/kaleidoscope\";\r\nexport type { GlassEffect } from \"./implementations/glass\";\r\nexport type { LutEffect } from \"./implementations/lut\";\r\nexport { ASCII_CHARSETS, resolveAsciiCharset } from \"./implementations/ascii\";\r\n\r\n/** Chainable effect builder API, chain class, and union input type. */\r\nexport { Effects, EffectChain, resolveChainEffects, effectsOps } from './chain';\r\nexport type { Effect } from './chain';\r\n\r\n/** Per-effect builder options. Every builder takes exactly one of these. */\r\nexport type {\r\n BlurOptions,\r\n DirectionalBlurOptions,\r\n GrayscaleOptions,\r\n PixelateOptions,\r\n BulgeOptions,\r\n MagnifyOptions,\r\n BloomOptions,\r\n VintageOptions,\r\n ChromaticAberrationOptions,\r\n InvertOptions,\r\n ScatterOptions,\r\n PosterizeOptions,\r\n MotionBlurOptions,\r\n ShaderEffectOptions,\r\n OutlineOptions,\r\n VignetteOptions,\r\n GrainOptions,\r\n SharpenOptions,\r\n EdgesOptions,\r\n ThresholdOptions,\r\n RadialBlurOptions,\r\n HalftoneOptions,\r\n DitherOptions,\r\n DuotoneOptions,\r\n CurvesOptions,\r\n ColorAdjustmentOptions,\r\n LutOptions,\r\n RgbShiftOptions,\r\n ScanlinesOptions,\r\n BlockDisplaceOptions,\r\n BitCrushOptions,\r\n AsciiOptions,\r\n StreakOptions,\r\n GlowOptions,\r\n OilPaintOptions,\r\n WaveOptions,\r\n TwirlOptions,\r\n ProgressiveBlurOptions,\r\n KaleidoscopeOptions,\r\n GlassOptions,\r\n} from './chain';\r\n\r\nexport type { EffectData, EffectMode, EffectSurface, EffectAxis, EffectOptions, ModedEffect } from './effect-data';\r\nexport { EFFECT_OPTION_KEYS, withEffectOptions, resolveEffectAxis, sameEffectAxis } from './effect-data';\r\nexport { resolveEffectColor, sameEffectColor } from './effect-data';\r\nexport { lerpEffect, effectSurface, describeEffect, effectDescriptors } from './registry';\r\n\r\n/** The serialisable description of each built-in effect, for a host's UI (see `describeEffect`). */\r\nexport type {\r\n EffectDescriptor,\r\n EffectParamDescriptor,\r\n EffectParamKind,\r\n EffectParamUnit,\r\n EffectParamControl,\r\n EffectGroup,\r\n EffectJson,\r\n} from './spec';\r\n\r\n/** Backdrop/foreground classification helpers. */\r\nexport { isBackdropEffect, backdropEffects, foregroundShaderEffects } from './backdrop';\r\n\r\n/** Union of all concrete effect types accepted by scene nodes. */\r\nexport { NodeEffect } from './union';\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/attributes/shape/effects/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AA6B3E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9E,uEAAuE;AACvE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgDhF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAa1F,kDAAkD;AAClD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC","sourcesContent":["/** Effect data types for each built-in effect. */\nexport type { BlurEffect } from \"./implementations/blur\";\nexport type { DirectionalBlurEffect } from \"./implementations/directional-blur\";\nexport type { GrayscaleEffect } from \"./implementations/grayscale\";\nexport type { PixelateEffect } from \"./implementations/pixelate\";\nexport type { BulgeEffect } from \"./implementations/bulge\";\nexport type { MagnifyEffect } from \"./implementations/magnify\";\nexport type { BloomEffect } from \"./implementations/bloom\";\nexport type { VintageEffect } from \"./implementations/vintage\";\nexport type { ChromaticAberrationEffect } from \"./implementations/chromatic-aberration\";\nexport type { InvertEffect, InvertChannel } from \"./implementations/invert\";\nexport type { ScatterEffect } from \"./implementations/scatter\";\nexport type { PosterizeEffect } from \"./implementations/posterize\";\nexport type { MotionBlurEffect, MotionBlurAlignment } from \"./implementations/motion-blur\";\nexport { resolveMotionBlurAlignment } from \"./implementations/motion-blur\";\nexport type { ShaderEffect } from \"./implementations/shader\";\nexport type { OutlineEffect, OutlinePosition } from \"./implementations/outline\";\nexport type { DropShadowEffect } from \"./implementations/drop-shadow\";\nexport type { VignetteEffect } from \"./implementations/vignette\";\nexport type { GrainEffect } from \"./implementations/grain\";\nexport type { SharpenEffect } from \"./implementations/sharpen\";\nexport type { EdgesEffect, EdgeKernel } from \"./implementations/edges\";\nexport type { ThresholdEffect } from \"./implementations/threshold\";\nexport type { RadialBlurEffect, RadialBlurStyle } from \"./implementations/radial-blur\";\nexport type { HalftoneEffect, HalftoneShape, HalftoneSeparation } from \"./implementations/halftone\";\nexport type { DitherEffect, DitherMatrix, DitherNoise } from \"./implementations/dither\";\nexport type { DuotoneEffect } from \"./implementations/duotone\";\nexport type { CurvesEffect } from \"./implementations/curves\";\nexport type { ColorAdjustmentEffect } from \"./implementations/color-adjustment\";\nexport type { RgbShiftEffect } from \"./implementations/rgb-shift\";\nexport type { ScanlinesEffect } from \"./implementations/scanlines\";\nexport type { BlockDisplaceEffect } from \"./implementations/block-displace\";\nexport type { BitCrushEffect, BitCrushPalette } from \"./implementations/bit-crush\";\nexport type { AsciiEffect, AsciiCharset } from \"./implementations/ascii\";\nexport type { StreakEffect } from \"./implementations/streak\";\nexport type { GlowChannel, GlowEffect, GlowLoopStyle, GlowOriginal, GlowTint } from \"./implementations/glow\";\nexport type { OilPaintEffect } from \"./implementations/oil-paint\";\nexport type { WaveEffect, WaveShape } from \"./implementations/wave\";\nexport type { TwirlEffect } from \"./implementations/twirl\";\nexport type { ProgressiveBlurEffect, ProgressiveBlurShape } from \"./implementations/progressive-blur\";\nexport type { KaleidoscopeEffect } from \"./implementations/kaleidoscope\";\nexport type { GlassEffect } from \"./implementations/glass\";\nexport type { LutEffect } from \"./implementations/lut\";\nexport { ASCII_CHARSETS, resolveAsciiCharset } from \"./implementations/ascii\";\n\n/** Chainable effect builder API, chain class, and union input type. */\nexport { Effects, EffectChain, resolveChainEffects, effectsOps } from './chain';\nexport type { Effect } from './chain';\n\n/** Per-effect builder options. Every builder takes exactly one of these. */\nexport type {\n BlurOptions,\n DirectionalBlurOptions,\n GrayscaleOptions,\n PixelateOptions,\n BulgeOptions,\n MagnifyOptions,\n BloomOptions,\n VintageOptions,\n ChromaticAberrationOptions,\n InvertOptions,\n ScatterOptions,\n PosterizeOptions,\n MotionBlurOptions,\n ShaderEffectOptions,\n OutlineOptions,\n VignetteOptions,\n GrainOptions,\n SharpenOptions,\n EdgesOptions,\n ThresholdOptions,\n RadialBlurOptions,\n HalftoneOptions,\n DitherOptions,\n DuotoneOptions,\n CurvesOptions,\n ColorAdjustmentOptions,\n LutOptions,\n RgbShiftOptions,\n ScanlinesOptions,\n BlockDisplaceOptions,\n BitCrushOptions,\n AsciiOptions,\n StreakOptions,\n GlowOptions,\n OilPaintOptions,\n WaveOptions,\n TwirlOptions,\n ProgressiveBlurOptions,\n KaleidoscopeOptions,\n GlassOptions,\n} from './chain';\n\nexport type { EffectData, EffectMode, EffectSurface, EffectAxis, EffectOptions, ModedEffect } from './effect-data';\nexport { EFFECT_OPTION_KEYS, withEffectOptions, resolveEffectAxis, sameEffectAxis } from './effect-data';\nexport { resolveEffectColor, sameEffectColor } from './effect-data';\nexport { lerpEffect, effectSurface, describeEffect, effectDescriptors } from './registry';\n\n/** The serialisable description of each built-in effect, for a host's UI (see `describeEffect`). */\nexport type {\n EffectDescriptor,\n EffectParamDescriptor,\n EffectParamKind,\n EffectParamUnit,\n EffectParamControl,\n EffectGroup,\n EffectJson,\n} from './spec';\n\n/** Backdrop/foreground classification helpers. */\nexport { isBackdropEffect, backdropEffects, foregroundShaderEffects } from './backdrop';\n\n/** Union of all concrete effect types accepted by scene nodes. */\nexport { NodeEffect } from './union';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/attributes/shape/effects/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,SAAS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K,EAAE,GAAG,MAAM,EAAgB,CAAC;QACpC,MAAM,MAAM,GAAG,GAAyC,CAAC;QACzD,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;;YAC7C,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IACD,OAAO,GAAG,IAAI,MAAM,CAAC;AACzB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,CAAa,EAAE,CAAa;IACrD,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACtE,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC","sourcesContent":["import { NodeEffect } from \"./union\";\r\n\r\nimport { blurEffect, blurSpec } from \"./implementations/blur\";\r\nimport { directionalBlurEffect, directionalBlurSpec } from \"./implementations/directional-blur\";\r\nimport { grayscaleEffect, grayscaleSpec } from \"./implementations/grayscale\";\r\nimport { pixelateEffect, pixelateSpec } from \"./implementations/pixelate\";\r\nimport { bulgeEffect, bulgeSpec } from \"./implementations/bulge\";\r\nimport { magnifyEffect, magnifySpec } from \"./implementations/magnify\";\r\nimport { bloomEffect, bloomSpec } from \"./implementations/bloom\";\r\nimport { vintageEffect, vintageSpec } from \"./implementations/vintage\";\r\nimport { chromaticAberrationEffect, chromaticAberrationSpec } from \"./implementations/chromatic-aberration\";\r\nimport { invertEffect, invertSpec } from \"./implementations/invert\";\r\nimport { scatterEffect, scatterSpec } from \"./implementations/scatter\";\r\nimport { posterizeEffect, posterizeSpec } from \"./implementations/posterize\";\r\nimport { motionBlurEffect, motionBlurSpec } from \"./implementations/motion-blur\";\r\nimport { shaderEffect, shaderSpec } from \"./implementations/shader\";\r\nimport { outlineEffect, outlineSpec } from \"./implementations/outline\";\r\nimport { dropShadowEffect, dropShadowSpec } from \"./implementations/drop-shadow\";\r\nimport { vignetteEffect, vignetteSpec } from \"./implementations/vignette\";\r\nimport { grainEffect, grainSpec } from \"./implementations/grain\";\r\nimport { sharpenEffect, sharpenSpec } from \"./implementations/sharpen\";\r\nimport { edgesEffect, edgesSpec } from \"./implementations/edges\";\r\nimport { thresholdEffect, thresholdSpec } from \"./implementations/threshold\";\r\nimport { radialBlurEffect, radialBlurSpec } from \"./implementations/radial-blur\";\r\nimport { halftoneEffect, halftoneSpec } from \"./implementations/halftone\";\r\nimport { ditherEffect, ditherSpec } from \"./implementations/dither\";\r\nimport { duotoneEffect, duotoneSpec } from \"./implementations/duotone\";\r\nimport { curvesEffect, curvesSpec } from \"./implementations/curves\";\r\nimport { colorAdjustmentEffect, colorAdjustmentSpec } from \"./implementations/color-adjustment\";\r\nimport { rgbShiftEffect, rgbShiftSpec } from \"./implementations/rgb-shift\";\r\nimport { scanlinesEffect, scanlinesSpec } from \"./implementations/scanlines\";\r\nimport { blockDisplaceEffect, blockDisplaceSpec } from \"./implementations/block-displace\";\r\nimport { bitCrushEffect, bitCrushSpec } from \"./implementations/bit-crush\";\r\nimport { asciiEffect, asciiSpec } from \"./implementations/ascii\";\r\nimport { streakEffect, streakSpec } from \"./implementations/streak\";\r\nimport { glowEffect, glowSpec } from \"./implementations/glow\";\r\nimport { oilPaintEffect, oilPaintSpec } from \"./implementations/oil-paint\";\r\nimport { waveEffect, waveSpec } from \"./implementations/wave\";\r\nimport { twirlEffect, twirlSpec } from \"./implementations/twirl\";\r\nimport { progressiveBlurEffect, progressiveBlurSpec } from \"./implementations/progressive-blur\";\r\nimport { kaleidoscopeEffect, kaleidoscopeSpec } from \"./implementations/kaleidoscope\";\r\nimport { glassEffect, glassSpec } from \"./implementations/glass\";\r\nimport { lutEffect, lutSpec } from \"./implementations/lut\";\r\nimport { EffectData, EffectSurface, EFFECT_OPTION_KEYS } from \"./effect-data\";\r\nimport { describeSpec, type EffectDescriptor, type EffectSpec } from \"./spec\";\r\nimport type { AssetScope } from \"@/assets/scope\";\r\n\r\n\r\n/**\r\n * Every built-in effect: its spec (the parameters a host and the renderers\r\n * read) and the `EffectData` derived from it, in registration order.\r\n */\r\nconst BUILT_INS: readonly (readonly [EffectSpec, EffectData<any>])[] = [\r\n [blurSpec, blurEffect],\r\n [directionalBlurSpec, directionalBlurEffect],\r\n [grayscaleSpec, grayscaleEffect],\r\n [pixelateSpec, pixelateEffect],\r\n [bulgeSpec, bulgeEffect],\r\n [magnifySpec, magnifyEffect],\r\n [bloomSpec, bloomEffect],\r\n [vintageSpec, vintageEffect],\r\n [chromaticAberrationSpec, chromaticAberrationEffect],\r\n [invertSpec, invertEffect],\r\n [scatterSpec, scatterEffect],\r\n [posterizeSpec, posterizeEffect],\r\n [motionBlurSpec, motionBlurEffect],\r\n [shaderSpec, shaderEffect],\r\n [outlineSpec, outlineEffect],\r\n [dropShadowSpec, dropShadowEffect],\r\n [vignetteSpec, vignetteEffect],\r\n [grainSpec, grainEffect],\r\n [sharpenSpec, sharpenEffect],\r\n [edgesSpec, edgesEffect],\r\n [thresholdSpec, thresholdEffect],\r\n [radialBlurSpec, radialBlurEffect],\r\n [halftoneSpec, halftoneEffect],\r\n [ditherSpec, ditherEffect],\r\n [duotoneSpec, duotoneEffect],\r\n [curvesSpec, curvesEffect],\r\n [colorAdjustmentSpec, colorAdjustmentEffect],\r\n [rgbShiftSpec, rgbShiftEffect],\r\n [scanlinesSpec, scanlinesEffect],\r\n [blockDisplaceSpec, blockDisplaceEffect],\r\n [bitCrushSpec, bitCrushEffect],\r\n [asciiSpec, asciiEffect],\r\n [streakSpec, streakEffect],\r\n [glowSpec, glowEffect],\r\n [oilPaintSpec, oilPaintEffect],\r\n [waveSpec, waveEffect],\r\n [twirlSpec, twirlEffect],\r\n [progressiveBlurSpec, progressiveBlurEffect],\r\n [kaleidoscopeSpec, kaleidoscopeEffect],\r\n [glassSpec, glassEffect],\r\n [lutSpec, lutEffect],\r\n];\r\n\r\nconst EFFECTS = new Map<string, EffectData<NodeEffect>>(BUILT_INS.map(([spec, data]) => [spec.type, data]));\r\nconst SPECS = new Map<string, EffectSpec>(BUILT_INS.map(([spec]) => [spec.type, spec]));\r\n\r\nfunction dataFor(type: string): EffectData<NodeEffect> | undefined {\r\n return EFFECTS.get(type);\r\n}\r\n\r\n/**\r\n * Normalise one authored effect — see {@link EffectData.resolve}.\r\n *\r\n * Returns the effect untouched when its type registers no `resolve`, which is\r\n * every effect but one.\r\n */\r\nexport function resolveEffect(effect: NodeEffect): NodeEffect {\r\n const data = dataFor(effect.type);\r\n return data?.resolve ? data.resolve(effect) : effect;\r\n}\r\n\r\n/**\r\n * Every registered effect type, in registration order.\r\n *\r\n * The roster itself, so a contract test can sweep the whole set rather than a\r\n * hand-kept list that silently misses whatever was added last.\r\n */\r\nexport const effectTypes = (): string[] => [...EFFECTS.keys()];\r\n\r\n/** The spec of a built-in effect type, or `undefined`. */\r\nexport function effectSpec(type: string): EffectSpec | undefined {\r\n return SPECS.get(type);\r\n}\r\n\r\nconst descriptors = new Map<string, EffectDescriptor>();\r\n\r\n/**\r\n * A built-in effect type described for a host — its fields' kinds, defaults,\r\n * ranges and inspector hints, as plain JSON (see {@link EffectDescriptor}).\r\n * `undefined` for a type core does not know.\r\n */\r\nexport function describeEffect(type: string): EffectDescriptor | undefined {\r\n const spec = effectSpec(type);\r\n if (!spec) return undefined;\r\n let out = descriptors.get(spec.type);\r\n if (!out) descriptors.set(spec.type, (out = describeSpec(spec)));\r\n return structuredClone(out);\r\n}\r\n\r\n/** {@link describeEffect} for every built-in effect, in registration order. */\r\nexport function effectDescriptors(): EffectDescriptor[] {\r\n return [...SPECS.keys()].map((type) => describeEffect(type)!);\r\n}\r\n\r\n/** True when `type` has a registered `EffectData` handler. */\r\nexport function hasEffect(type: string): boolean {\r\n return dataFor(type) !== undefined;\r\n}\r\n\r\n/**\r\n * How a backend must realise `effect` — see {@link EffectSurface}. Unknown types\r\n * fall back to `\"filter\"`, the composable default.\r\n */\r\nexport function effectSurface(effect: NodeEffect): EffectSurface {\r\n const surface = dataFor(effect.type)?.surface;\r\n if (surface === undefined) return \"filter\";\r\n return typeof surface === \"function\" ? surface(effect) : surface;\r\n}\r\n\r\nexport function declareEffect(effect: NodeEffect, assets: AssetScope): void {\r\n dataFor(effect.type)?.declare?.(effect, assets);\r\n}\r\n\r\n/**\r\n * Interpolates two effects of the same type.\r\n *\r\n * The cross-cutting {@link EFFECT_OPTION_KEYS} (`mode`, `clip`) are carried here\r\n * for every kind, switching at the midpoint like any non-interpolable value, so\r\n * an effect's own `lerp` only has to describe its parameters and a new option\r\n * cannot be dropped by one of 45 hand-written copies.\r\n *\r\n * @internal\r\n */\r\nexport function lerpEffect(from: NodeEffect, to: NodeEffect, t: number): NodeEffect {\r\n if (from.type !== to.type) return t < 0.5 ? from : to;\r\n const data = dataFor(from.type);\r\n if (!data) return t < 0.5 ? from : to;\r\n const lerped = data.lerp(from, to, t);\r\n const source = t < 0.5 ? from : to;\r\n let out: NodeEffect | undefined;\r\n for (const key of EFFECT_OPTION_KEYS) {\r\n if (lerped[key] === source[key]) continue;\r\n // Copy lazily, and omit rather than write `undefined`: the equality\r\n // checks compare these fields directly.\r\n out ??= { ...lerped } as NodeEffect;\r\n const target = out as unknown as Record<string, unknown>;\r\n if (source[key] === undefined) delete target[key];\r\n else target[key] = source[key];\r\n }\r\n return out ?? lerped;\r\n}\r\n\r\n/**\r\n * Do two effects describe the same look? The effect's own `equals` compares its\r\n * parameters; the type and the cross-cutting {@link EFFECT_OPTION_KEYS} are\r\n * compared here for every kind.\r\n *\r\n * @internal\r\n */\r\nexport function equalsEffect(a: NodeEffect, b: NodeEffect): boolean {\r\n if (a.type !== b.type) return false;\r\n if (EFFECT_OPTION_KEYS.some((key) => a[key] !== b[key])) return false;\r\n const data = dataFor(a.type);\r\n return data ? data.equals(a, b) : a === b;\r\n}\r\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/attributes/shape/effects/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAA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CAAC;IAChC,KAAK,MAAM,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACnC,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,GAAG,CAAC;YAAE,SAAS;QAC1C,oEAAoE;QACpE,wCAAwC;QACxC,GAAG,KAAK,EAAE,GAAG,MAAM,EAAgB,CAAC;QACpC,MAAM,MAAM,GAAG,GAAyC,CAAC;QACzD,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;;YAC7C,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IACD,OAAO,GAAG,IAAI,MAAM,CAAC;AACzB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,CAAa,EAAE,CAAa;IACrD,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACtE,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC","sourcesContent":["import { NodeEffect } from \"./union\";\n\nimport { blurEffect, blurSpec } from \"./implementations/blur\";\nimport { directionalBlurEffect, directionalBlurSpec } from \"./implementations/directional-blur\";\nimport { grayscaleEffect, grayscaleSpec } from \"./implementations/grayscale\";\nimport { pixelateEffect, pixelateSpec } from \"./implementations/pixelate\";\nimport { bulgeEffect, bulgeSpec } from \"./implementations/bulge\";\nimport { magnifyEffect, magnifySpec } from \"./implementations/magnify\";\nimport { bloomEffect, bloomSpec } from \"./implementations/bloom\";\nimport { vintageEffect, vintageSpec } from \"./implementations/vintage\";\nimport { chromaticAberrationEffect, chromaticAberrationSpec } from \"./implementations/chromatic-aberration\";\nimport { invertEffect, invertSpec } from \"./implementations/invert\";\nimport { scatterEffect, scatterSpec } from \"./implementations/scatter\";\nimport { posterizeEffect, posterizeSpec } from \"./implementations/posterize\";\nimport { motionBlurEffect, motionBlurSpec } from \"./implementations/motion-blur\";\nimport { shaderEffect, shaderSpec } from \"./implementations/shader\";\nimport { outlineEffect, outlineSpec } from \"./implementations/outline\";\nimport { dropShadowEffect, dropShadowSpec } from \"./implementations/drop-shadow\";\nimport { vignetteEffect, vignetteSpec } from \"./implementations/vignette\";\nimport { grainEffect, grainSpec } from \"./implementations/grain\";\nimport { sharpenEffect, sharpenSpec } from \"./implementations/sharpen\";\nimport { edgesEffect, edgesSpec } from \"./implementations/edges\";\nimport { thresholdEffect, thresholdSpec } from \"./implementations/threshold\";\nimport { radialBlurEffect, radialBlurSpec } from \"./implementations/radial-blur\";\nimport { halftoneEffect, halftoneSpec } from \"./implementations/halftone\";\nimport { ditherEffect, ditherSpec } from \"./implementations/dither\";\nimport { duotoneEffect, duotoneSpec } from \"./implementations/duotone\";\nimport { curvesEffect, curvesSpec } from \"./implementations/curves\";\nimport { colorAdjustmentEffect, colorAdjustmentSpec } from \"./implementations/color-adjustment\";\nimport { rgbShiftEffect, rgbShiftSpec } from \"./implementations/rgb-shift\";\nimport { scanlinesEffect, scanlinesSpec } from \"./implementations/scanlines\";\nimport { blockDisplaceEffect, blockDisplaceSpec } from \"./implementations/block-displace\";\nimport { bitCrushEffect, bitCrushSpec } from \"./implementations/bit-crush\";\nimport { asciiEffect, asciiSpec } from \"./implementations/ascii\";\nimport { streakEffect, streakSpec } from \"./implementations/streak\";\nimport { glowEffect, glowSpec } from \"./implementations/glow\";\nimport { oilPaintEffect, oilPaintSpec } from \"./implementations/oil-paint\";\nimport { waveEffect, waveSpec } from \"./implementations/wave\";\nimport { twirlEffect, twirlSpec } from \"./implementations/twirl\";\nimport { progressiveBlurEffect, progressiveBlurSpec } from \"./implementations/progressive-blur\";\nimport { kaleidoscopeEffect, kaleidoscopeSpec } from \"./implementations/kaleidoscope\";\nimport { glassEffect, glassSpec } from \"./implementations/glass\";\nimport { lutEffect, lutSpec } from \"./implementations/lut\";\nimport { EffectData, EffectSurface, EFFECT_OPTION_KEYS } from \"./effect-data\";\nimport { describeSpec, type EffectDescriptor, type EffectSpec } from \"./spec\";\nimport type { AssetScope } from \"@/assets/scope\";\n\n\n/**\n * Every built-in effect: its spec (the parameters a host and the renderers\n * read) and the `EffectData` derived from it, in registration order.\n */\nconst BUILT_INS: readonly (readonly [EffectSpec, EffectData<any>])[] = [\n [blurSpec, blurEffect],\n [directionalBlurSpec, directionalBlurEffect],\n [grayscaleSpec, grayscaleEffect],\n [pixelateSpec, pixelateEffect],\n [bulgeSpec, bulgeEffect],\n [magnifySpec, magnifyEffect],\n [bloomSpec, bloomEffect],\n [vintageSpec, vintageEffect],\n [chromaticAberrationSpec, chromaticAberrationEffect],\n [invertSpec, invertEffect],\n [scatterSpec, scatterEffect],\n [posterizeSpec, posterizeEffect],\n [motionBlurSpec, motionBlurEffect],\n [shaderSpec, shaderEffect],\n [outlineSpec, outlineEffect],\n [dropShadowSpec, dropShadowEffect],\n [vignetteSpec, vignetteEffect],\n [grainSpec, grainEffect],\n [sharpenSpec, sharpenEffect],\n [edgesSpec, edgesEffect],\n [thresholdSpec, thresholdEffect],\n [radialBlurSpec, radialBlurEffect],\n [halftoneSpec, halftoneEffect],\n [ditherSpec, ditherEffect],\n [duotoneSpec, duotoneEffect],\n [curvesSpec, curvesEffect],\n [colorAdjustmentSpec, colorAdjustmentEffect],\n [rgbShiftSpec, rgbShiftEffect],\n [scanlinesSpec, scanlinesEffect],\n [blockDisplaceSpec, blockDisplaceEffect],\n [bitCrushSpec, bitCrushEffect],\n [asciiSpec, asciiEffect],\n [streakSpec, streakEffect],\n [glowSpec, glowEffect],\n [oilPaintSpec, oilPaintEffect],\n [waveSpec, waveEffect],\n [twirlSpec, twirlEffect],\n [progressiveBlurSpec, progressiveBlurEffect],\n [kaleidoscopeSpec, kaleidoscopeEffect],\n [glassSpec, glassEffect],\n [lutSpec, lutEffect],\n];\n\nconst EFFECTS = new Map<string, EffectData<NodeEffect>>(BUILT_INS.map(([spec, data]) => [spec.type, data]));\nconst SPECS = new Map<string, EffectSpec>(BUILT_INS.map(([spec]) => [spec.type, spec]));\n\nfunction dataFor(type: string): EffectData<NodeEffect> | undefined {\n return EFFECTS.get(type);\n}\n\n/**\n * Normalise one authored effect — see {@link EffectData.resolve}.\n *\n * Returns the effect untouched when its type registers no `resolve`, which is\n * every effect but one.\n */\nexport function resolveEffect(effect: NodeEffect): NodeEffect {\n const data = dataFor(effect.type);\n return data?.resolve ? data.resolve(effect) : effect;\n}\n\n/**\n * Every registered effect type, in registration order.\n *\n * The roster itself, so a contract test can sweep the whole set rather than a\n * hand-kept list that silently misses whatever was added last.\n */\nexport const effectTypes = (): string[] => [...EFFECTS.keys()];\n\n/** The spec of a built-in effect type, or `undefined`. */\nexport function effectSpec(type: string): EffectSpec | undefined {\n return SPECS.get(type);\n}\n\nconst descriptors = new Map<string, EffectDescriptor>();\n\n/**\n * A built-in effect type described for a host — its fields' kinds, defaults,\n * ranges and inspector hints, as plain JSON (see {@link EffectDescriptor}).\n * `undefined` for a type core does not know.\n */\nexport function describeEffect(type: string): EffectDescriptor | undefined {\n const spec = effectSpec(type);\n if (!spec) return undefined;\n let out = descriptors.get(spec.type);\n if (!out) descriptors.set(spec.type, (out = describeSpec(spec)));\n return structuredClone(out);\n}\n\n/** {@link describeEffect} for every built-in effect, in registration order. */\nexport function effectDescriptors(): EffectDescriptor[] {\n return [...SPECS.keys()].map((type) => describeEffect(type)!);\n}\n\n/** True when `type` has a registered `EffectData` handler. */\nexport function hasEffect(type: string): boolean {\n return dataFor(type) !== undefined;\n}\n\n/**\n * How a backend must realise `effect` — see {@link EffectSurface}. Unknown types\n * fall back to `\"filter\"`, the composable default.\n */\nexport function effectSurface(effect: NodeEffect): EffectSurface {\n const surface = dataFor(effect.type)?.surface;\n if (surface === undefined) return \"filter\";\n return typeof surface === \"function\" ? surface(effect) : surface;\n}\n\nexport function declareEffect(effect: NodeEffect, assets: AssetScope): void {\n dataFor(effect.type)?.declare?.(effect, assets);\n}\n\n/**\n * Interpolates two effects of the same type.\n *\n * The cross-cutting {@link EFFECT_OPTION_KEYS} (`mode`, `clip`) are carried here\n * for every kind, switching at the midpoint like any non-interpolable value, so\n * an effect's own `lerp` only has to describe its parameters and a new option\n * cannot be dropped by one of 45 hand-written copies.\n *\n * @internal\n */\nexport function lerpEffect(from: NodeEffect, to: NodeEffect, t: number): NodeEffect {\n if (from.type !== to.type) return t < 0.5 ? from : to;\n const data = dataFor(from.type);\n if (!data) return t < 0.5 ? from : to;\n const lerped = data.lerp(from, to, t);\n const source = t < 0.5 ? from : to;\n let out: NodeEffect | undefined;\n for (const key of EFFECT_OPTION_KEYS) {\n if (lerped[key] === source[key]) continue;\n // Copy lazily, and omit rather than write `undefined`: the equality\n // checks compare these fields directly.\n out ??= { ...lerped } as NodeEffect;\n const target = out as unknown as Record<string, unknown>;\n if (source[key] === undefined) delete target[key];\n else target[key] = source[key];\n }\n return out ?? lerped;\n}\n\n/**\n * Do two effects describe the same look? The effect's own `equals` compares its\n * parameters; the type and the cross-cutting {@link EFFECT_OPTION_KEYS} are\n * compared here for every kind.\n *\n * @internal\n */\nexport function equalsEffect(a: NodeEffect, b: NodeEffect): boolean {\n if (a.type !== b.type) return false;\n if (EFFECT_OPTION_KEYS.some((key) => a[key] !== b[key])) return false;\n const data = dataFor(a.type);\n return data ? data.equals(a, b) : a === b;\n}\n"]}