@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":"color-adjustment.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/color-adjustment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAiB/E,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE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,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACzF,6CAA6C;QAC7C,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC5F,0BAA0B;QAC1B,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC7F,8BAA8B;QAC9B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAC9G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,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 * Photographic tonal and colour adjustments as a **node effect** — the grading\r\n * panel `Adjustments.colorAdjustment` gives an image fill, now available on any\r\n * node. All fields are optional and default to neutral.\r\n *\r\n * Shares its type name and renderer handler with `ColorAdjustmentFilter` (the\r\n * media-fill filter) with one deliberate difference: no `vignette` field. That\r\n * knob was never implemented on the filter — a vignette needs each pixel's\r\n * position, which a colour matrix does not have — so the node effect leaves it\r\n * out and `Effects.vignette()` provides the real thing.\r\n */\r\nexport interface ColorAdjustmentEffect extends ModedEffect, EffectFields<typeof colorAdjustmentSpec.params> {\r\n type: \"colorAdjustment\";\r\n}\r\n\r\n/** The {@link ColorAdjustmentEffect} spec: its parameters, defaults and ranges. */\r\nexport const colorAdjustmentSpec = defineEffect({\r\n type: \"colorAdjustment\",\r\n group: \"color\",\r\n neutral: { contrast: 1, saturation: 1, temperature: 0 },\r\n // Every field is optional; `default` is what an absent one means.\r\n params: {\r\n /** −1…1, additive. */\r\n brightness: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\", inline: true }),\r\n /** 0…2, multiplicative around mid-grey. */\r\n contrast: param.number({ default: 1, optional: true, min: 0, max: 2, control: \"slider\" }),\r\n /** 0…3, multiplicative. */\r\n saturation: param.number({ default: 1, optional: true, min: 0, max: 3, control: \"slider\" }),\r\n /** Hue rotation in degrees. */\r\n hue: param.number({ default: 0, optional: true, unit: \"deg\", control: \"hue\" }),\r\n /** −1…1, saturation weighted toward muted colours. */\r\n vibrance: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\r\n /** −1…1, lifts or crushes the dark end. */\r\n shadows: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\r\n /** −1…1, lifts or crushes the bright end. */\r\n highlights: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\r\n /** −1…1, cool to warm. */\r\n temperature: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\r\n /** −1…1, green to magenta. */\r\n tint: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\", label: \"tintAmount\" }),\r\n },\r\n});\r\n\r\nexport const colorAdjustmentEffect: EffectData<ColorAdjustmentEffect> = effectDataOf(colorAdjustmentSpec);\r\n"]}
1
+ {"version":3,"file":"color-adjustment.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/color-adjustment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAiB/E,mFAAmF;AACnF,MAAM,CAAC,MAA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,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACzF,6CAA6C;QAC7C,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC5F,0BAA0B;QAC1B,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC7F,8BAA8B;QAC9B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAC9G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Photographic tonal and colour adjustments as a **node effect** — the grading\n * panel `Adjustments.colorAdjustment` gives an image fill, now available on any\n * node. All fields are optional and default to neutral.\n *\n * Shares its type name and renderer handler with `ColorAdjustmentFilter` (the\n * media-fill filter) with one deliberate difference: no `vignette` field. That\n * knob was never implemented on the filter — a vignette needs each pixel's\n * position, which a colour matrix does not have — so the node effect leaves it\n * out and `Effects.vignette()` provides the real thing.\n */\nexport interface ColorAdjustmentEffect extends ModedEffect, EffectFields<typeof colorAdjustmentSpec.params> {\n type: \"colorAdjustment\";\n}\n\n/** The {@link ColorAdjustmentEffect} spec: its parameters, defaults and ranges. */\nexport const colorAdjustmentSpec = defineEffect({\n type: \"colorAdjustment\",\n group: \"color\",\n neutral: { contrast: 1, saturation: 1, temperature: 0 },\n // Every field is optional; `default` is what an absent one means.\n params: {\n /** −1…1, additive. */\n brightness: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\", inline: true }),\n /** 0…2, multiplicative around mid-grey. */\n contrast: param.number({ default: 1, optional: true, min: 0, max: 2, control: \"slider\" }),\n /** 0…3, multiplicative. */\n saturation: param.number({ default: 1, optional: true, min: 0, max: 3, control: \"slider\" }),\n /** Hue rotation in degrees. */\n hue: param.number({ default: 0, optional: true, unit: \"deg\", control: \"hue\" }),\n /** −1…1, saturation weighted toward muted colours. */\n vibrance: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, lifts or crushes the dark end. */\n shadows: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, lifts or crushes the bright end. */\n highlights: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, cool to warm. */\n temperature: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, green to magenta. */\n tint: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\", label: \"tintAmount\" }),\n },\n});\n\nexport const colorAdjustmentEffect: EffectData<ColorAdjustmentEffect> = effectDataOf(colorAdjustmentSpec);\n"]}
@@ -23,12 +23,12 @@ export declare const curvesSpec: import("../spec.js").EffectSpec<"curves", {
23
23
  readonly equals: (a: [number, number][], b: [number, number][]) => boolean;
24
24
  }>;
25
25
  /** Channel(s) the curve applies to. An intermediate channel name is meaningless, so it cuts. */
26
- readonly channel: import("../spec.js").EffectParamDef<"rgb" | "r" | "g" | "b" | "a", "rgb" | "r" | "g" | "b" | "a"> & NoInfer<{
26
+ readonly channel: import("../spec.js").EffectParamDef<"r" | "g" | "b" | "a" | "rgb", "r" | "g" | "b" | "a" | "rgb"> & NoInfer<{
27
27
  readonly default: "rgb";
28
28
  readonly optional: true;
29
29
  }> & {
30
30
  kind: "enum";
31
- options: readonly ("rgb" | "r" | "g" | "b" | "a")[];
31
+ options: readonly ("r" | "g" | "b" | "a" | "rgb")[];
32
32
  };
33
33
  }>;
34
34
  export declare const curvesEffect: EffectData<CurvesEffect>;
@@ -1 +1 @@
1
- {"version":3,"file":"curves.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/curves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAgB/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,8EAA8E;IAC9E,2EAA2E;IAC3E,8EAA8E;IAC9E,0EAA0E;IAC1E,qEAAqE;IACrE,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;IACrC,MAAM,EAAE;QACJ,qGAAqG;QACrG,MAAM,EAAE,KAAK,CAAC,EAAE,EAAsB,CAAC;YACnC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC1C,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACjC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAqB,CAAC;YAC5E,CAAC,CAAC;YACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SACxG,CAAC;QACF,gGAAgG;QAChG,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAA2B,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACnH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAA6B,YAAY,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\r\nimport type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport type { CurvesChannel } from \"../../filters/implementations/curves\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Tone curve as a **node effect** — the same adjustment `Adjustments.curves`\r\n * applies to a photo, now available on any node, so a group of shapes or a text\r\n * block can be graded the same way.\r\n *\r\n * Shares its type name, fields and renderer handler with {@link CurvesFilter}\r\n * (the media-fill filter); the only difference is the `mode` flag every scene\r\n * effect carries. Keeping them one implementation is deliberate — a curve should\r\n * not mean two different things depending on what it is attached to.\r\n */\r\nexport interface CurvesEffect extends ModedEffect, EffectFields<typeof curvesSpec.params> {\r\n type: \"curves\";\r\n}\r\n\r\n/** The {@link CurvesEffect} spec: its parameters, defaults and ranges. */\r\nexport const curvesSpec = defineEffect({\r\n type: \"curves\",\r\n group: \"color\",\r\n // A curve is a *lookup*, and a colour matrix cannot express one: it is affine\r\n // by construction and a curve is authored for its bends. Evaluating it per\r\n // pixel needs the source as a shader it can read — the same reason `lut` is a\r\n // shader scope, and the same trade: exact, at the cost of a pass. See the\r\n // renderer's `curvesEffectHandler` for what that means for ordering.\r\n surface: \"shader\",\r\n neutral: { points: [[0, 0], [1, 1]] },\r\n params: {\r\n /** Curve control points as `[input, output]` pairs in 0–1. Move pairwise, as `curvesFilter.lerp`. */\r\n points: param.of<[number, number][]>()({\r\n kind: \"points\",\r\n required: true,\r\n lerp: (from, to, t) => from.map(([x, y], i) => {\r\n const [tx, ty] = to[i] ?? [x, y];\r\n return [lerpNumber(x, tx, t), lerpNumber(y, ty, t)] as [number, number];\r\n }),\r\n equals: (a, b) => a.length === b.length && a.every(([x, y], i) => x === b[i]?.[0] && y === b[i]?.[1]),\r\n }),\r\n /** Channel(s) the curve applies to. An intermediate channel name is meaningless, so it cuts. */\r\n channel: param.choice([\"rgb\", \"r\", \"g\", \"b\", \"a\"] satisfies CurvesChannel[], { default: \"rgb\", optional: true }),\r\n },\r\n});\r\n\r\nexport const curvesEffect: EffectData<CurvesEffect> = effectDataOf(curvesSpec);\r\n"]}
1
+ {"version":3,"file":"curves.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/curves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAgB/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,8EAA8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EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACnH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAA6B,YAAY,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { ModedEffect, EffectData } from \"../effect-data\";\nimport type { CurvesChannel } from \"../../filters/implementations/curves\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Tone curve as a **node effect** — the same adjustment `Adjustments.curves`\n * applies to a photo, now available on any node, so a group of shapes or a text\n * block can be graded the same way.\n *\n * Shares its type name, fields and renderer handler with {@link CurvesFilter}\n * (the media-fill filter); the only difference is the `mode` flag every scene\n * effect carries. Keeping them one implementation is deliberate — a curve should\n * not mean two different things depending on what it is attached to.\n */\nexport interface CurvesEffect extends ModedEffect, EffectFields<typeof curvesSpec.params> {\n type: \"curves\";\n}\n\n/** The {@link CurvesEffect} spec: its parameters, defaults and ranges. */\nexport const curvesSpec = defineEffect({\n type: \"curves\",\n group: \"color\",\n // A curve is a *lookup*, and a colour matrix cannot express one: it is affine\n // by construction and a curve is authored for its bends. Evaluating it per\n // pixel needs the source as a shader it can read — the same reason `lut` is a\n // shader scope, and the same trade: exact, at the cost of a pass. See the\n // renderer's `curvesEffectHandler` for what that means for ordering.\n surface: \"shader\",\n neutral: { points: [[0, 0], [1, 1]] },\n params: {\n /** Curve control points as `[input, output]` pairs in 0–1. Move pairwise, as `curvesFilter.lerp`. */\n points: param.of<[number, number][]>()({\n kind: \"points\",\n required: true,\n lerp: (from, to, t) => from.map(([x, y], i) => {\n const [tx, ty] = to[i] ?? [x, y];\n return [lerpNumber(x, tx, t), lerpNumber(y, ty, t)] as [number, number];\n }),\n equals: (a, b) => a.length === b.length && a.every(([x, y], i) => x === b[i]?.[0] && y === b[i]?.[1]),\n }),\n /** Channel(s) the curve applies to. An intermediate channel name is meaningless, so it cuts. */\n channel: param.choice([\"rgb\", \"r\", \"g\", \"b\", \"a\"] satisfies CurvesChannel[], { default: \"rgb\", optional: true }),\n },\n});\n\nexport const curvesEffect: EffectData<CurvesEffect> = effectDataOf(curvesSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"directional-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/directional-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAW/E,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,4CAA4C;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC9H,6DAA6D;QAC7D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC7D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,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 * Motion-blur-style directional (linear) blur. Unlike {@link BlurEffect}, which\r\n * blurs uniformly in all directions, this smears the node's own content along a\r\n * single axis.\r\n */\r\nexport interface DirectionalBlurEffect extends ModedEffect, EffectFields<typeof directionalBlurSpec.params> {\r\n type: \"directionalBlur\";\r\n}\r\n\r\n/** The {@link DirectionalBlurEffect} spec: its parameters, defaults and ranges. */\r\nexport const directionalBlurSpec = defineEffect({\r\n type: \"directionalBlur\",\r\n group: \"blur\",\r\n scalar: \"radius\",\r\n neutral: { radius: 0 },\r\n params: {\r\n /** Smear length in pixels along `angle`. */\r\n radius: param.number({ default: 0, required: true, min: 0, unit: \"px\", label: \"length\", inline: true, order: 1, initial: 10 }),\r\n /** Smear axis in degrees — 0 = horizontal, 90 = vertical. */\r\n angle: param.number({ default: 0, unit: \"deg\", order: 0 }),\r\n },\r\n});\r\n\r\nexport const directionalBlurEffect: EffectData<DirectionalBlurEffect> = effectDataOf(directionalBlurSpec);\r\n"]}
1
+ {"version":3,"file":"directional-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/directional-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAW/E,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,4CAA4C;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC9H,6DAA6D;QAC7D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC7D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Motion-blur-style directional (linear) blur. Unlike {@link BlurEffect}, which\n * blurs uniformly in all directions, this smears the node's own content along a\n * single axis.\n */\nexport interface DirectionalBlurEffect extends ModedEffect, EffectFields<typeof directionalBlurSpec.params> {\n type: \"directionalBlur\";\n}\n\n/** The {@link DirectionalBlurEffect} spec: its parameters, defaults and ranges. */\nexport const directionalBlurSpec = defineEffect({\n type: \"directionalBlur\",\n group: \"blur\",\n scalar: \"radius\",\n neutral: { radius: 0 },\n params: {\n /** Smear length in pixels along `angle`. */\n radius: param.number({ default: 0, required: true, min: 0, unit: \"px\", label: \"length\", inline: true, order: 1, initial: 10 }),\n /** Smear axis in degrees — 0 = horizontal, 90 = vertical. */\n angle: param.number({ default: 0, unit: \"deg\", order: 0 }),\n },\n});\n\nexport const directionalBlurEffect: EffectData<DirectionalBlurEffect> = effectDataOf(directionalBlurSpec);\n"]}
@@ -47,13 +47,13 @@ export declare const ditherSpec: import("../spec.js").EffectSpec<"dither", {
47
47
  kind: "number";
48
48
  };
49
49
  /** Bayer matrix size. Ignored when `noise` is `'blue'`. */
50
- readonly matrix: import("../spec.js").EffectParamDef<4 | 2 | 8, 4 | 2 | 8> & NoInfer<{
50
+ readonly matrix: import("../spec.js").EffectParamDef<2 | 4 | 8, 2 | 4 | 8> & NoInfer<{
51
51
  readonly default: 4;
52
52
  readonly optionsLabel: "ditherMatrix";
53
53
  readonly order: 2;
54
54
  }> & {
55
55
  kind: "enum";
56
- options: readonly (4 | 2 | 8)[];
56
+ options: readonly (2 | 4 | 8)[];
57
57
  };
58
58
  /** Pattern cell size in pixels. */
59
59
  readonly scale: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
@@ -1 +1 @@
1
- {"version":3,"file":"dither.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/dither.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAsC/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,gEAAgE;IAChE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACxB,MAAM,EAAE;QACJ,qCAAqC;QACrC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACtF,2DAA2D;QAC3D,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAA0B,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAChH,mCAAmC;QACnC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC7F,2CAA2C;QAC3C,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvD;;;;;WAKG;QACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,MAAM,CAAyB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACpJ;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 * Size of the Bayer threshold matrix: 2×2, 4×4 or 8×8. Bigger matrices carry\r\n * more distinct threshold levels, so the pattern is finer and the apparent tonal\r\n * range wider — 2 is a blunt checkerboard, 8 the smooth classic ordered dither.\r\n */\r\nexport type DitherMatrix = 2 | 4 | 8;\r\n\r\n/**\r\n * Where a pixel's threshold comes from.\r\n *\r\n * - `'bayer'` — the recursive ordered matrix. Its lattice *is* the look: the\r\n * crosshatch is visible at every density, which is what reads as 8-bit and\r\n * what makes it beat against the pixel grid at some `scale`s.\r\n * - `'blue'` — a void-and-cluster blue-noise field. Every density stays\r\n * homogeneous, so the tone is reproduced with no lattice and no moiré. Pick\r\n * this when the dither should be texture rather than pattern.\r\n *\r\n * `matrix` only applies to `'bayer'`.\r\n */\r\nexport type DitherNoise = 'bayer' | 'blue';\r\n\r\n/**\r\n * Ordered dithering — quantize the image to `levels` tones per channel, but\r\n * offset each pixel's rounding by a threshold pattern first. The error is traded\r\n * for texture instead of banding, which is how 8-bit hardware faked gradients.\r\n *\r\n * `noise` picks which pattern: the classic Bayer matrix (visible crosshatch, the\r\n * retro look) or blue noise (no visible structure at any density).\r\n *\r\n * Contrast with `posterize`, which quantizes with no threshold pattern and so\r\n * produces flat bands.\r\n */\r\nexport interface DitherEffect extends ModedEffect, EffectFields<typeof ditherSpec.params> {\r\n type: \"dither\";\r\n}\r\n\r\n/** The {@link DitherEffect} spec: its parameters, defaults and ranges. */\r\nexport const ditherSpec = defineEffect({\r\n type: \"dither\",\r\n group: \"stylize\",\r\n // The threshold depends on the pixel's position in the pattern.\r\n surface: \"shader\",\r\n scalar: \"levels\",\r\n neutral: { levels: 255 },\r\n params: {\r\n /** Output tones per channel, ≥ 2. */\r\n levels: param.number({ default: 2, min: 2, max: 32, step: 1, inline: true, order: 0 }),\r\n /** Bayer matrix size. Ignored when `noise` is `'blue'`. */\r\n matrix: param.choice([2, 4, 8] satisfies DitherMatrix[], { default: 4, optionsLabel: \"ditherMatrix\", order: 2 }),\r\n /** Pattern cell size in pixels. */\r\n scale: param.number({ default: 1, min: 1, step: 1, unit: \"px\", label: \"cellSize\", order: 3 }),\r\n /** Dither luminance to black and white. */\r\n monochrome: param.boolean({ default: false, order: 4 }),\r\n /**\r\n * Threshold pattern. `'bayer'` is the classic ordered matrix — a visible\r\n * crosshatch, the retro look, which can beat against the pixel grid at\r\n * some `scale`s. `'blue'` is a void-and-cluster blue-noise field: same\r\n * tone reproduction, no lattice, no moiré.\r\n */\r\n noise: param.choice([\"bayer\", \"blue\"] satisfies DitherNoise[], { default: \"bayer\", label: \"ditherNoise\", optionsLabel: \"ditherNoise\", order: 1 }),\r\n },\r\n});\r\n\r\nexport const ditherEffect: EffectData<DitherEffect> = effectDataOf(ditherSpec);\r\n"]}
1
+ {"version":3,"file":"dither.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/dither.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAsC/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,gEAAgE;IAChE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACxB,MAAM,EAAE;QACJ,qCAAqC;QACrC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACtF,2DAA2D;QAC3D,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAA0B,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAChH,mCAAmC;QACnC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC7F,2CAA2C;QAC3C,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvD;;;;;WAKG;QACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,MAAM,CAAyB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACpJ;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 * Size of the Bayer threshold matrix: 2×2, 4×4 or 8×8. Bigger matrices carry\n * more distinct threshold levels, so the pattern is finer and the apparent tonal\n * range wider — 2 is a blunt checkerboard, 8 the smooth classic ordered dither.\n */\nexport type DitherMatrix = 2 | 4 | 8;\n\n/**\n * Where a pixel's threshold comes from.\n *\n * - `'bayer'` — the recursive ordered matrix. Its lattice *is* the look: the\n * crosshatch is visible at every density, which is what reads as 8-bit and\n * what makes it beat against the pixel grid at some `scale`s.\n * - `'blue'` — a void-and-cluster blue-noise field. Every density stays\n * homogeneous, so the tone is reproduced with no lattice and no moiré. Pick\n * this when the dither should be texture rather than pattern.\n *\n * `matrix` only applies to `'bayer'`.\n */\nexport type DitherNoise = 'bayer' | 'blue';\n\n/**\n * Ordered dithering — quantize the image to `levels` tones per channel, but\n * offset each pixel's rounding by a threshold pattern first. The error is traded\n * for texture instead of banding, which is how 8-bit hardware faked gradients.\n *\n * `noise` picks which pattern: the classic Bayer matrix (visible crosshatch, the\n * retro look) or blue noise (no visible structure at any density).\n *\n * Contrast with `posterize`, which quantizes with no threshold pattern and so\n * produces flat bands.\n */\nexport interface DitherEffect extends ModedEffect, EffectFields<typeof ditherSpec.params> {\n type: \"dither\";\n}\n\n/** The {@link DitherEffect} spec: its parameters, defaults and ranges. */\nexport const ditherSpec = defineEffect({\n type: \"dither\",\n group: \"stylize\",\n // The threshold depends on the pixel's position in the pattern.\n surface: \"shader\",\n scalar: \"levels\",\n neutral: { levels: 255 },\n params: {\n /** Output tones per channel, ≥ 2. */\n levels: param.number({ default: 2, min: 2, max: 32, step: 1, inline: true, order: 0 }),\n /** Bayer matrix size. Ignored when `noise` is `'blue'`. */\n matrix: param.choice([2, 4, 8] satisfies DitherMatrix[], { default: 4, optionsLabel: \"ditherMatrix\", order: 2 }),\n /** Pattern cell size in pixels. */\n scale: param.number({ default: 1, min: 1, step: 1, unit: \"px\", label: \"cellSize\", order: 3 }),\n /** Dither luminance to black and white. */\n monochrome: param.boolean({ default: false, order: 4 }),\n /**\n * Threshold pattern. `'bayer'` is the classic ordered matrix — a visible\n * crosshatch, the retro look, which can beat against the pixel grid at\n * some `scale`s. `'blue'` is a void-and-cluster blue-noise field: same\n * tone reproduction, no lattice, no moiré.\n */\n noise: param.choice([\"bayer\", \"blue\"] satisfies DitherNoise[], { default: \"bayer\", label: \"ditherNoise\", optionsLabel: \"ditherNoise\", order: 1 }),\n },\n});\n\nexport const ditherEffect: EffectData<DitherEffect> = effectDataOf(ditherSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"drop-shadow.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/drop-shadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AA2B/E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,QAAQ;IACjB,2DAA2D;IAC3D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,YAAY;IACpB,6EAA6E;IAC7E,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IACvD,MAAM,EAAE;QACJ,yCAAyC;QACzC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACnE,8DAA8D;QAC9D,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACpE,sDAAsD;QACtD,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC1F,uDAAuD;QACvD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;QAC/E,qBAAqB;QACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KAC3C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,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 * A shadow cast from the node's **alpha silhouette** rather than from its\r\n * geometry — the drop shadow that a `shadow` prop can't give you when the shape\r\n * on screen isn't the shape of the path.\r\n *\r\n * A shape's `shadow` fills the node's own outline with the shadow colour and\r\n * blurs it, which is exactly right for a rect, an ellipse or a star. It is\r\n * exactly wrong for anything whose visible form comes from *pixels*: a cut-out\r\n * PNG, a video with an alpha channel, a line of text, a whole subtree. All of\r\n * those cast a blurred **rectangle**, because the rectangle is what their path\r\n * is — and on a cut-out subject that reads as a bug rather than as a shadow.\r\n *\r\n * So this one is computed from what the node actually drew. Same relationship\r\n * to `shadow` that {@link OutlineEffect} has to `stroke`: the geometry version\r\n * is cheaper and sharper where the path *is* the picture, and this one is the\r\n * answer everywhere else.\r\n *\r\n * Offsets are in the scene's own axes — a positive `y` lifts the shadow upward,\r\n * matching `ShadowProp.offset` rather than the y-down device space the shader\r\n * runs in, so the two kinds of shadow move the same way under the same numbers.\r\n */\r\nexport interface DropShadowEffect extends ModedEffect, EffectFields<typeof dropShadowSpec.params> {\r\n type: \"dropShadow\";\r\n}\r\n\r\n/** The {@link DropShadowEffect} spec: its parameters, defaults and ranges. */\r\nexport const dropShadowSpec = defineEffect({\r\n type: \"dropShadow\",\r\n group: \"stylize\",\r\n surface: \"shader\",\r\n // Softness is the knob a shadow is usually reached for by.\r\n scalar: \"blur\",\r\n onlyOn: \"foreground\",\r\n // Nowhere to fall, no softness and no growth: nothing of it is ever visible.\r\n neutral: { offsetX: 0, offsetY: 0, blur: 0, spread: 0 },\r\n params: {\r\n /** Horizontal displacement in pixels. */\r\n offsetX: param.number({ default: 0, unit: \"px\", label: \"shadowX\" }),\r\n /** Vertical displacement in pixels, positive being upward. */\r\n offsetY: param.number({ default: -8, unit: \"px\", label: \"shadowY\" }),\r\n /** Softness in pixels, on a `blur` effect's scale. */\r\n blur: param.number({ default: 16, min: 0, unit: \"px\", label: \"shadowBlur\", inline: true }),\r\n /** Grows the silhouette before blurring, in pixels. */\r\n spread: param.number({ default: 0, min: 0, unit: \"px\", label: \"shadowSpread\" }),\r\n /** Shadow colour. */\r\n color: param.color({ default: \"black\" }),\r\n },\r\n});\r\n\r\nexport const dropShadowEffect: EffectData<DropShadowEffect> = effectDataOf(dropShadowSpec);\r\n"]}
1
+ {"version":3,"file":"drop-shadow.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/drop-shadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AA2B/E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,QAAQ;IACjB,2DAA2D;IAC3D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,YAAY;IACpB,6EAA6E;IAC7E,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IACvD,MAAM,EAAE;QACJ,yCAAyC;QACzC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACnE,8DAA8D;QAC9D,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACpE,sDAAsD;QACtD,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC1F,uDAAuD;QACvD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;QAC/E,qBAAqB;QACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KAC3C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * A shadow cast from the node's **alpha silhouette** rather than from its\n * geometry — the drop shadow that a `shadow` prop can't give you when the shape\n * on screen isn't the shape of the path.\n *\n * A shape's `shadow` fills the node's own outline with the shadow colour and\n * blurs it, which is exactly right for a rect, an ellipse or a star. It is\n * exactly wrong for anything whose visible form comes from *pixels*: a cut-out\n * PNG, a video with an alpha channel, a line of text, a whole subtree. All of\n * those cast a blurred **rectangle**, because the rectangle is what their path\n * is — and on a cut-out subject that reads as a bug rather than as a shadow.\n *\n * So this one is computed from what the node actually drew. Same relationship\n * to `shadow` that {@link OutlineEffect} has to `stroke`: the geometry version\n * is cheaper and sharper where the path *is* the picture, and this one is the\n * answer everywhere else.\n *\n * Offsets are in the scene's own axes — a positive `y` lifts the shadow upward,\n * matching `ShadowProp.offset` rather than the y-down device space the shader\n * runs in, so the two kinds of shadow move the same way under the same numbers.\n */\nexport interface DropShadowEffect extends ModedEffect, EffectFields<typeof dropShadowSpec.params> {\n type: \"dropShadow\";\n}\n\n/** The {@link DropShadowEffect} spec: its parameters, defaults and ranges. */\nexport const dropShadowSpec = defineEffect({\n type: \"dropShadow\",\n group: \"stylize\",\n surface: \"shader\",\n // Softness is the knob a shadow is usually reached for by.\n scalar: \"blur\",\n onlyOn: \"foreground\",\n // Nowhere to fall, no softness and no growth: nothing of it is ever visible.\n neutral: { offsetX: 0, offsetY: 0, blur: 0, spread: 0 },\n params: {\n /** Horizontal displacement in pixels. */\n offsetX: param.number({ default: 0, unit: \"px\", label: \"shadowX\" }),\n /** Vertical displacement in pixels, positive being upward. */\n offsetY: param.number({ default: -8, unit: \"px\", label: \"shadowY\" }),\n /** Softness in pixels, on a `blur` effect's scale. */\n blur: param.number({ default: 16, min: 0, unit: \"px\", label: \"shadowBlur\", inline: true }),\n /** Grows the silhouette before blurring, in pixels. */\n spread: param.number({ default: 0, min: 0, unit: \"px\", label: \"shadowSpread\" }),\n /** Shadow colour. */\n color: param.color({ default: \"black\" }),\n },\n});\n\nexport const dropShadowEffect: EffectData<DropShadowEffect> = effectDataOf(dropShadowSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"duotone.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/duotone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAc/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,OAAO;IACd,4EAA4E;IAC5E,wEAAwE;IACxE,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,4DAA4D;QAC5D,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,uCAAuC;QACvC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAC1C,yCAAyC;QACzC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KAChD;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 * Duotone / gradient map — remap the content's luminance onto a two-colour ramp,\r\n * so black becomes `shadows`, white becomes `highlights`, and everything between\r\n * interpolates. Chroma in the source is discarded; only its brightness survives.\r\n *\r\n * The editorial two-colour treatment (Spotify covers, risograph posters) and the\r\n * general \"tint a photo to brand colours\" tool, both from one pair of colours.\r\n */\r\nexport interface DuotoneEffect extends ModedEffect, EffectFields<typeof duotoneSpec.params> {\r\n type: \"duotone\";\r\n}\r\n\r\n/** The {@link DuotoneEffect} spec: its parameters, defaults and ranges. */\r\nexport const duotoneSpec = defineEffect({\r\n type: \"duotone\",\r\n group: \"color\",\r\n // A luminance ramp is a plain affine colour transform, so it composes as an\r\n // ImageFilter (the default surface) rather than needing a shader scope.\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** 0–1 blend from the original colours to the full ramp. */\r\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\r\n /** Colour the darkest tones map to. */\r\n shadows: param.color({ default: \"black\" }),\r\n /** Colour the brightest tones map to. */\r\n highlights: param.color({ default: \"white\" }),\r\n },\r\n});\r\n\r\nexport const duotoneEffect: EffectData<DuotoneEffect> = effectDataOf(duotoneSpec);\r\n"]}
1
+ {"version":3,"file":"duotone.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/duotone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAc/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,OAAO;IACd,4EAA4E;IAC5E,wEAAwE;IACxE,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,4DAA4D;QAC5D,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,uCAAuC;QACvC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAC1C,yCAAyC;QACzC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KAChD;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 * Duotone / gradient map — remap the content's luminance onto a two-colour ramp,\n * so black becomes `shadows`, white becomes `highlights`, and everything between\n * interpolates. Chroma in the source is discarded; only its brightness survives.\n *\n * The editorial two-colour treatment (Spotify covers, risograph posters) and the\n * general \"tint a photo to brand colours\" tool, both from one pair of colours.\n */\nexport interface DuotoneEffect extends ModedEffect, EffectFields<typeof duotoneSpec.params> {\n type: \"duotone\";\n}\n\n/** The {@link DuotoneEffect} spec: its parameters, defaults and ranges. */\nexport const duotoneSpec = defineEffect({\n type: \"duotone\",\n group: \"color\",\n // A luminance ramp is a plain affine colour transform, so it composes as an\n // ImageFilter (the default surface) rather than needing a shader scope.\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** 0–1 blend from the original colours to the full ramp. */\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\n /** Colour the darkest tones map to. */\n shadows: param.color({ default: \"black\" }),\n /** Colour the brightest tones map to. */\n highlights: param.color({ default: \"white\" }),\n },\n});\n\nexport const duotoneEffect: EffectData<DuotoneEffect> = effectDataOf(duotoneSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"edges.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/edges.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAsB/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,iCAAiC;IACjC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,2CAA2C;QAC3C,QAAQ,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;QACvF,4CAA4C;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAwB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;QAChI,sDAAsD;QACtD,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KAC7C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,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 * Which convolution kernel detects the edges.\r\n *\r\n * - `\"sobel\"` — gradient magnitude with a centre-weighted 3×3 pair. The default:\r\n * thick, smooth, noise-tolerant edges.\r\n * - `\"prewitt\"` — the same gradient pair without the centre weighting. Slightly\r\n * thinner and more literal, noisier on gradients.\r\n * - `\"laplacian\"` — second derivative in one pass. Finest lines, picks up texture\r\n * the gradient operators smooth over.\r\n */\r\nexport type EdgeKernel = \"sobel\" | \"prewitt\" | \"laplacian\";\r\n\r\n/**\r\n * Edge detection — replaces the content with the magnitude of its own gradient,\r\n * so flat areas go black and boundaries light up.\r\n */\r\nexport interface EdgesEffect extends ModedEffect, EffectFields<typeof edgesSpec.params> {\r\n type: \"edges\";\r\n}\r\n\r\n/** The {@link EdgesEffect} spec: its parameters, defaults and ranges. */\r\nexport const edgesSpec = defineEffect({\r\n type: \"edges\",\r\n group: \"stylize\",\r\n // Convolves a 3×3 neighbourhood.\r\n surface: \"shader\",\r\n scalar: \"strength\",\r\n neutral: { strength: 0 },\r\n params: {\r\n /** Multiplier on the detected gradient. */\r\n strength: param.number({ default: 1, min: 0, max: 4, control: \"slider\", inline: true }),\r\n /** Which operator measures the gradient. */\r\n kernel: param.choice([\"sobel\", \"prewitt\", \"laplacian\"] satisfies EdgeKernel[], { default: \"sobel\", optionsLabel: \"edgeKernel\" }),\r\n /** Detect per RGB channel instead of on luminance. */\r\n colored: param.boolean({ default: false }),\r\n },\r\n});\r\n\r\nexport const edgesEffect: EffectData<EdgesEffect> = effectDataOf(edgesSpec);\r\n"]}
1
+ {"version":3,"file":"edges.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/edges.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAsB/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,iCAAiC;IACjC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,2CAA2C;QAC3C,QAAQ,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;QACvF,4CAA4C;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAwB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;QAChI,sDAAsD;QACtD,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KAC7C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Which convolution kernel detects the edges.\n *\n * - `\"sobel\"` — gradient magnitude with a centre-weighted 3×3 pair. The default:\n * thick, smooth, noise-tolerant edges.\n * - `\"prewitt\"` — the same gradient pair without the centre weighting. Slightly\n * thinner and more literal, noisier on gradients.\n * - `\"laplacian\"` — second derivative in one pass. Finest lines, picks up texture\n * the gradient operators smooth over.\n */\nexport type EdgeKernel = \"sobel\" | \"prewitt\" | \"laplacian\";\n\n/**\n * Edge detection — replaces the content with the magnitude of its own gradient,\n * so flat areas go black and boundaries light up.\n */\nexport interface EdgesEffect extends ModedEffect, EffectFields<typeof edgesSpec.params> {\n type: \"edges\";\n}\n\n/** The {@link EdgesEffect} spec: its parameters, defaults and ranges. */\nexport const edgesSpec = defineEffect({\n type: \"edges\",\n group: \"stylize\",\n // Convolves a 3×3 neighbourhood.\n surface: \"shader\",\n scalar: \"strength\",\n neutral: { strength: 0 },\n params: {\n /** Multiplier on the detected gradient. */\n strength: param.number({ default: 1, min: 0, max: 4, control: \"slider\", inline: true }),\n /** Which operator measures the gradient. */\n kernel: param.choice([\"sobel\", \"prewitt\", \"laplacian\"] satisfies EdgeKernel[], { default: \"sobel\", optionsLabel: \"edgeKernel\" }),\n /** Detect per RGB channel instead of on luminance. */\n colored: param.boolean({ default: false }),\n },\n});\n\nexport const edgesEffect: EffectData<EdgesEffect> = effectDataOf(edgesSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"glass.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/glass.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAmB/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,oEAAoE;IACpE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,YAAY;IACpB,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,UAAU;IAClB,0DAA0D;IAC1D,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,qEAAqE;QACrE,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAA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AI,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KACpF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,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 * Figma's Glass: the backdrop seen through a slab of glass whose edge curves\r\n * down to the node's outline — refracted, split into a spectrum at the curve,\r\n * optionally frosted, with a rim of light.\r\n *\r\n * The fields are Figma's own, in Figma's units, so values copied from a Figma\r\n * file render the same: `depth` and `frost` are px, `lightAngle` is degrees\r\n * clockwise from the top, and the rest are 0–100 amounts.\r\n *\r\n * Glass only has meaning on the **backdrop** — there is nothing to refract in a\r\n * node's own paint — so `Effects.glass()` defaults `mode` to `'backdrop'` and the\r\n * renderer's handler serves that target only.\r\n */\r\nexport interface GlassEffect extends ModedEffect, EffectFields<typeof glassSpec.params> {\r\n type: \"glass\";\r\n}\r\n\r\n/** The {@link GlassEffect} spec: its parameters, defaults and ranges. */\r\nexport const glassSpec = defineEffect({\r\n type: \"glass\",\r\n group: \"light\",\r\n // Resamples the backdrop through a bevel, three times per fragment.\r\n surface: \"shader\",\r\n scalar: \"refraction\",\r\n defaultMode: \"backdrop\",\r\n onlyOn: \"backdrop\",\r\n // No curved edge means nothing to refract or light along.\r\n neutral: { depth: 0 },\r\n params: {\r\n /** Where the light comes from, in degrees clockwise from the top. */\r\n lightAngle: param.number({ default: -45, unit: \"deg\", control: \"angle\", zero: \"top\" }),\r\n /** 0–100 brightness of the light. */\r\n lightIntensity: param.number({ default: 80, min: 0, max: 100, unit: \"percent\" }),\r\n /** 0–100 how strongly the curved edge bends the backdrop. */\r\n refraction: param.number({ default: 80, min: 0, max: 100, step: 1, control: \"slider\", inline: true }),\r\n /** How far the curved edge reaches in from the outline, px. */\r\n depth: param.number({ default: 20, min: 0, max: 100, step: 1, unit: \"px\", control: \"slider\" }),\r\n /** 0–100 spectral split along the curved edge. */\r\n dispersion: param.number({ default: 50, min: 0, max: 100, step: 1, control: \"slider\" }),\r\n /** Backdrop blur radius, px. */\r\n frost: param.number({ default: 4, min: 0, max: 100, step: 1, unit: \"px\", control: \"slider\" }),\r\n /** 0–100 how far the projected light spreads in from the rim. */\r\n splay: param.number({ default: 0, min: 0, max: 100, step: 1, control: \"slider\" }),\r\n },\r\n});\r\n\r\nexport const glassEffect: EffectData<GlassEffect> = effectDataOf(glassSpec);\r\n"]}
1
+ {"version":3,"file":"glass.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/glass.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAmB/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,oEAAoE;IACpE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,YAAY;IACpB,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,UAAU;IAClB,0DAA0D;IAC1D,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,qEAAqE;QACrE,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACtF,qCAAqC;QACrC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAChF,6DAA6D;QAC7D,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrG,+DAA+D;QAC/D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC9F,kDAAkD;QAClD,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACvF,gCAAgC;QAChC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC7F,iEAAiE;QACjE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KACpF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Figma's Glass: the backdrop seen through a slab of glass whose edge curves\n * down to the node's outline — refracted, split into a spectrum at the curve,\n * optionally frosted, with a rim of light.\n *\n * The fields are Figma's own, in Figma's units, so values copied from a Figma\n * file render the same: `depth` and `frost` are px, `lightAngle` is degrees\n * clockwise from the top, and the rest are 0–100 amounts.\n *\n * Glass only has meaning on the **backdrop** — there is nothing to refract in a\n * node's own paint — so `Effects.glass()` defaults `mode` to `'backdrop'` and the\n * renderer's handler serves that target only.\n */\nexport interface GlassEffect extends ModedEffect, EffectFields<typeof glassSpec.params> {\n type: \"glass\";\n}\n\n/** The {@link GlassEffect} spec: its parameters, defaults and ranges. */\nexport const glassSpec = defineEffect({\n type: \"glass\",\n group: \"light\",\n // Resamples the backdrop through a bevel, three times per fragment.\n surface: \"shader\",\n scalar: \"refraction\",\n defaultMode: \"backdrop\",\n onlyOn: \"backdrop\",\n // No curved edge means nothing to refract or light along.\n neutral: { depth: 0 },\n params: {\n /** Where the light comes from, in degrees clockwise from the top. */\n lightAngle: param.number({ default: -45, unit: \"deg\", control: \"angle\", zero: \"top\" }),\n /** 0–100 brightness of the light. */\n lightIntensity: param.number({ default: 80, min: 0, max: 100, unit: \"percent\" }),\n /** 0–100 how strongly the curved edge bends the backdrop. */\n refraction: param.number({ default: 80, min: 0, max: 100, step: 1, control: \"slider\", inline: true }),\n /** How far the curved edge reaches in from the outline, px. */\n depth: param.number({ default: 20, min: 0, max: 100, step: 1, unit: \"px\", control: \"slider\" }),\n /** 0–100 spectral split along the curved edge. */\n dispersion: param.number({ default: 50, min: 0, max: 100, step: 1, control: \"slider\" }),\n /** Backdrop blur radius, px. */\n frost: param.number({ default: 4, min: 0, max: 100, step: 1, unit: \"px\", control: \"slider\" }),\n /** 0–100 how far the projected light spreads in from the rim. */\n splay: param.number({ default: 0, min: 0, max: 100, step: 1, control: \"slider\" }),\n },\n});\n\nexport const glassEffect: EffectData<GlassEffect> = effectDataOf(glassSpec);\n"]}
@@ -116,13 +116,13 @@ export declare const glowSpec: import("../spec.js").EffectSpec<"glow", {
116
116
  options: readonly ("hidden" | "behind" | "front")[];
117
117
  };
118
118
  /** How the glow merges with the layer. */
119
- readonly blend: 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<{
119
+ readonly blend: 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<{
120
120
  readonly default: "screen";
121
121
  readonly optionsLabel: "blendMode";
122
122
  readonly order: 12;
123
123
  }> & {
124
124
  kind: "enum";
125
- options: readonly ("color" | "hue" | "saturation" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "luminosity" | "normal")[];
125
+ options: readonly ("color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal")[];
126
126
  };
127
127
  /** What the glow is coloured with. */
128
128
  readonly tint: import("../spec.js").EffectParamDef<"none" | "solid" | "ramp", "none" | "solid" | "ramp"> & NoInfer<{
@@ -167,14 +167,14 @@ export declare const glowSpec: import("../spec.js").EffectSpec<"glow", {
167
167
  readonly equals: (a: number[], b: number[]) => boolean;
168
168
  }>;
169
169
  /** How the ramp repeats past one pass. */
170
- readonly loopStyle: import("../spec.js").EffectParamDef<"mirror" | "repeat", "mirror" | "repeat"> & NoInfer<{
170
+ readonly loopStyle: import("../spec.js").EffectParamDef<"repeat" | "mirror", "repeat" | "mirror"> & NoInfer<{
171
171
  readonly default: "mirror";
172
172
  readonly control: "segmented";
173
173
  readonly optionsLabel: "glowLoopStyle";
174
174
  readonly order: 6;
175
175
  }> & {
176
176
  kind: "enum";
177
- options: readonly ("mirror" | "repeat")[];
177
+ options: readonly ("repeat" | "mirror")[];
178
178
  };
179
179
  /** Ramp traversals across the glow's strength range. */
180
180
  readonly cycles: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
@@ -1 +1 @@
1
- {"version":3,"file":"glow.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/glow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG3D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAmD/E,6CAA6C;AAC7C,MAAM,gBAAgB,GAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACvD,MAAM,eAAe,GAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEzC,wEAAwE;AACxE,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,WAAW;IACnB,4EAA4E;IAC5E,kDAAkD;IAClD,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE;IAC7C,6EAA6E;IAC7E,4CAA4C;IAC5C,IAAI,EAAE,CAAgC,IAAO,EAAE,EAAK,EAAE,CAAS,EAAE,OAAqC,EAAE,EAAE,CACtG,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,EAAE,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;QACF,0CAA0C;QAC1C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAA2B,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC7J,wDAAwD;QACxD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC1E,6EAA6E;QAC7E,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,UAAU,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\r\nimport { lerpColor } from \"@/attributes/shape/fill/lerp\";\r\nimport { BlendModes } from \"@/attributes/shape/fill/blend\";\r\nimport type { Color } from \"@/attributes/shape/fill/color/parser\";\r\nimport type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { resolveEffectColor, sameEffectColor } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * What the glow reads to decide how much a pixel glows.\r\n *\r\n * `\"luminance\"` is the photographic reading — bright pixels bleed, dark ones\r\n * don't, and {@link GlowEffect.threshold} sets where the cut falls.\r\n * `\"alpha\"` ignores colour entirely and glows every opaque pixel equally, which\r\n * is what you want when the glow is a halo around a shape rather than light\r\n * escaping an image.\r\n */\r\nexport type GlowChannel = \"luminance\" | \"alpha\";\r\n\r\n/**\r\n * What the glow is coloured with.\r\n *\r\n * - `\"none\"` keeps the source's own colours, scaled by intensity.\r\n * - `\"solid\"` paints the whole glow one {@link GlowEffect.color}.\r\n * - `\"ramp\"` maps glow strength through {@link GlowEffect.colors} /\r\n * {@link GlowEffect.stops}, which is what makes a glow read as heat, neon or\r\n * an aurora rather than as a brighter copy of the layer.\r\n */\r\nexport type GlowTint = \"none\" | \"solid\" | \"ramp\";\r\n\r\n/**\r\n * How the ramp repeats once {@link GlowEffect.cycles} takes it past one pass.\r\n *\r\n * The two names are the usual gradient tile modes, and mean what they mean there:\r\n * `\"repeat\"` restarts at the first stop (a hard seam between last and first),\r\n * `\"mirror\"` walks back down through the stops (seamless, at the cost of\r\n * halving the apparent frequency).\r\n */\r\nexport type GlowLoopStyle = \"mirror\" | \"repeat\";\r\n\r\n/** Where the source layer sits relative to the glow it produced. */\r\nexport type GlowOriginal = \"behind\" | \"front\" | \"hidden\";\r\n\r\n/**\r\n * A glow: the bright (or opaque) parts of a layer, spread outward and composited\r\n * back — optionally recoloured through a ramp keyed on how strongly each pixel\r\n * glows.\r\n *\r\n * The difference from `bloom`, which is otherwise the same three numbers: bloom\r\n * is a `\"filter\"` effect and is therefore bounded by the node's own rect, and it\r\n * can only screen its bright-pass back. This spreads past the box, chooses its\r\n * compositing, and can be coloured. See {@link EffectData.surface} below.\r\n */\r\nexport interface GlowEffect extends ModedEffect, EffectFields<typeof glowSpec.params> {\r\n type: \"glow\";\r\n}\r\n\r\n// White at the core falling to a warm amber.\r\nconst GLOW_RAMP_COLORS: Color[] = [\"white\", \"#ffa640\"];\r\nconst GLOW_RAMP_STOPS: number[] = [0, 1];\r\n\r\n/** The {@link GlowEffect} spec: its parameters, defaults and ranges. */\r\nexport const glowSpec = defineEffect({\r\n type: \"glow\",\r\n group: \"light\",\r\n surface: \"shader\",\r\n scalar: \"intensity\",\r\n // `intensity: 0` alone is not enough: `original: 'hidden'` would carry over\r\n // from the effect being faded and erase the node.\r\n neutral: { intensity: 0, original: \"behind\" },\r\n // Kept from the hand-written lerp: ramps of different lengths snap the whole\r\n // glow, not only the ramp, at the midpoint.\r\n lerp: <G extends { colors: Color[] }>(from: G, to: G, t: number, derived: (a: G, b: G, t: number) => G) =>\r\n from.colors.length !== to.colors.length ? { ...(t < 0.5 ? from : to) } : derived(from, to, t),\r\n params: {\r\n /** What decides a pixel's glow strength. */\r\n channel: param.choice([\"luminance\", \"alpha\"] satisfies GlowChannel[], { default: \"luminance\", control: \"segmented\", optionsLabel: \"glowChannel\", order: 9 }),\r\n /** 0-1 luminance cutoff; read only when `channel` is `'luminance'`. */\r\n threshold: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", order: 0 }),\r\n /** Spread distance in pixels. */\r\n radius: param.number({ default: 25, min: 0, unit: \"px\", order: 1 }),\r\n /** Dilation applied before the blur, in pixels — gives the glow a solid core. */\r\n spread: param.number({ default: 0, min: 0, unit: \"px\", order: 2 }),\r\n /** Additive multiplier for the glow pass. */\r\n intensity: param.number({ default: 1, min: 0, max: 3, control: \"slider\", inline: true, order: 3 }),\r\n /** Which way the glow spreads; `'x'`/`'y'` give anamorphic streaks. */\r\n axis: param.axis({ default: \"both\", control: \"segmented\", optionsLabel: \"effectAxis\", order: 10 }),\r\n /** Where the source layer sits relative to the glow. */\r\n original: param.choice([\"behind\", \"front\", \"hidden\"] satisfies GlowOriginal[], { default: \"behind\", control: \"segmented\", optionsLabel: \"glowOriginal\", order: 11 }),\r\n /** How the glow merges with the layer. */\r\n blend: param.choice(BlendModes, { default: \"screen\", optionsLabel: \"blendMode\", order: 12 }),\r\n /** What the glow is coloured with. */\r\n tint: param.choice([\"none\", \"solid\", \"ramp\"] satisfies GlowTint[], { default: \"none\", control: \"segmented\", optionsLabel: \"glowTint\", order: 4 }),\r\n /** The glow's colour when `tint` is `'solid'`. */\r\n color: param.color({ default: \"white\", order: 5 }),\r\n /**\r\n * Ramp colours when `tint` is `'ramp'`, parallel to `stops`.\r\n *\r\n * Componentwise when both ramps have the same number of stops. When the\r\n * counts differ there is no correspondence to interpolate along (stop 2\r\n * of 3 and stop 2 of 5 are not the same place), so it snaps at the\r\n * midpoint: a ramp that silently gained stops mid-tween reads as a bug.\r\n */\r\n colors: param.of<Color[]>()({\r\n kind: \"colors\",\r\n default: GLOW_RAMP_COLORS,\r\n hidden: true,\r\n order: 13,\r\n lerp: (a, b, t) => (a.length !== b.length ? (t < 0.5 ? a : b) : a.map((c, i) => lerpColor(resolveEffectColor(c), resolveEffectColor(b[i]), t))),\r\n equals: (a, b) => a.length === b.length && a.every((c, i) => sameEffectColor(c, b[i])),\r\n }),\r\n /** Each ramp colour's position, 0-1 ascending (evenly spaced when absent). */\r\n stops: param.of<number[]>()({\r\n kind: \"numbers\",\r\n default: GLOW_RAMP_STOPS,\r\n hidden: true,\r\n order: 14,\r\n lerp: (a, b, t, from, to) => ((from.colors as Color[]).length !== (to.colors as Color[]).length\r\n ? (t < 0.5 ? a : b)\r\n : a.map((s, i) => lerpNumber(s, b[i] ?? s, t))),\r\n equals: (a, b) => a.length === b.length && a.every((s, i) => s === b[i]),\r\n }),\r\n /** How the ramp repeats past one pass. */\r\n loopStyle: param.choice([\"mirror\", \"repeat\"] satisfies GlowLoopStyle[], { default: \"mirror\", control: \"segmented\", optionsLabel: \"glowLoopStyle\", order: 6 }),\r\n /** Ramp traversals across the glow's strength range. */\r\n cycles: param.number({ default: 1, min: 1, max: 10, step: 0.1, order: 7 }),\r\n /** Offset along the ramp in degrees of one cycle; animate to move colour. */\r\n phase: param.number({ default: 0, unit: \"deg\", control: \"angle\", order: 8 }),\r\n },\r\n});\r\n\r\nexport const glowEffect: EffectData<GlowEffect> = effectDataOf(glowSpec);\r\n"]}
1
+ {"version":3,"file":"glow.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/glow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,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EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC/E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport { lerpColor } from \"@/attributes/shape/fill/lerp\";\nimport { BlendModes } from \"@/attributes/shape/fill/blend\";\nimport type { Color } from \"@/attributes/shape/fill/color/parser\";\nimport type { ModedEffect, EffectData } from \"../effect-data\";\nimport { resolveEffectColor, sameEffectColor } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * What the glow reads to decide how much a pixel glows.\n *\n * `\"luminance\"` is the photographic reading — bright pixels bleed, dark ones\n * don't, and {@link GlowEffect.threshold} sets where the cut falls.\n * `\"alpha\"` ignores colour entirely and glows every opaque pixel equally, which\n * is what you want when the glow is a halo around a shape rather than light\n * escaping an image.\n */\nexport type GlowChannel = \"luminance\" | \"alpha\";\n\n/**\n * What the glow is coloured with.\n *\n * - `\"none\"` keeps the source's own colours, scaled by intensity.\n * - `\"solid\"` paints the whole glow one {@link GlowEffect.color}.\n * - `\"ramp\"` maps glow strength through {@link GlowEffect.colors} /\n * {@link GlowEffect.stops}, which is what makes a glow read as heat, neon or\n * an aurora rather than as a brighter copy of the layer.\n */\nexport type GlowTint = \"none\" | \"solid\" | \"ramp\";\n\n/**\n * How the ramp repeats once {@link GlowEffect.cycles} takes it past one pass.\n *\n * The two names are the usual gradient tile modes, and mean what they mean there:\n * `\"repeat\"` restarts at the first stop (a hard seam between last and first),\n * `\"mirror\"` walks back down through the stops (seamless, at the cost of\n * halving the apparent frequency).\n */\nexport type GlowLoopStyle = \"mirror\" | \"repeat\";\n\n/** Where the source layer sits relative to the glow it produced. */\nexport type GlowOriginal = \"behind\" | \"front\" | \"hidden\";\n\n/**\n * A glow: the bright (or opaque) parts of a layer, spread outward and composited\n * back — optionally recoloured through a ramp keyed on how strongly each pixel\n * glows.\n *\n * The difference from `bloom`, which is otherwise the same three numbers: bloom\n * is a `\"filter\"` effect and is therefore bounded by the node's own rect, and it\n * can only screen its bright-pass back. This spreads past the box, chooses its\n * compositing, and can be coloured. See {@link EffectData.surface} below.\n */\nexport interface GlowEffect extends ModedEffect, EffectFields<typeof glowSpec.params> {\n type: \"glow\";\n}\n\n// White at the core falling to a warm amber.\nconst GLOW_RAMP_COLORS: Color[] = [\"white\", \"#ffa640\"];\nconst GLOW_RAMP_STOPS: number[] = [0, 1];\n\n/** The {@link GlowEffect} spec: its parameters, defaults and ranges. */\nexport const glowSpec = defineEffect({\n type: \"glow\",\n group: \"light\",\n surface: \"shader\",\n scalar: \"intensity\",\n // `intensity: 0` alone is not enough: `original: 'hidden'` would carry over\n // from the effect being faded and erase the node.\n neutral: { intensity: 0, original: \"behind\" },\n // Kept from the hand-written lerp: ramps of different lengths snap the whole\n // glow, not only the ramp, at the midpoint.\n lerp: <G extends { colors: Color[] }>(from: G, to: G, t: number, derived: (a: G, b: G, t: number) => G) =>\n from.colors.length !== to.colors.length ? { ...(t < 0.5 ? from : to) } : derived(from, to, t),\n params: {\n /** What decides a pixel's glow strength. */\n channel: param.choice([\"luminance\", \"alpha\"] satisfies GlowChannel[], { default: \"luminance\", control: \"segmented\", optionsLabel: \"glowChannel\", order: 9 }),\n /** 0-1 luminance cutoff; read only when `channel` is `'luminance'`. */\n threshold: param.number({ default: 0.5, min: 0, max: 1, control: \"slider\", order: 0 }),\n /** Spread distance in pixels. */\n radius: param.number({ default: 25, min: 0, unit: \"px\", order: 1 }),\n /** Dilation applied before the blur, in pixels — gives the glow a solid core. */\n spread: param.number({ default: 0, min: 0, unit: \"px\", order: 2 }),\n /** Additive multiplier for the glow pass. */\n intensity: param.number({ default: 1, min: 0, max: 3, control: \"slider\", inline: true, order: 3 }),\n /** Which way the glow spreads; `'x'`/`'y'` give anamorphic streaks. */\n axis: param.axis({ default: \"both\", control: \"segmented\", optionsLabel: \"effectAxis\", order: 10 }),\n /** Where the source layer sits relative to the glow. */\n original: param.choice([\"behind\", \"front\", \"hidden\"] satisfies GlowOriginal[], { default: \"behind\", control: \"segmented\", optionsLabel: \"glowOriginal\", order: 11 }),\n /** How the glow merges with the layer. */\n blend: param.choice(BlendModes, { default: \"screen\", optionsLabel: \"blendMode\", order: 12 }),\n /** What the glow is coloured with. */\n tint: param.choice([\"none\", \"solid\", \"ramp\"] satisfies GlowTint[], { default: \"none\", control: \"segmented\", optionsLabel: \"glowTint\", order: 4 }),\n /** The glow's colour when `tint` is `'solid'`. */\n color: param.color({ default: \"white\", order: 5 }),\n /**\n * Ramp colours when `tint` is `'ramp'`, parallel to `stops`.\n *\n * Componentwise when both ramps have the same number of stops. When the\n * counts differ there is no correspondence to interpolate along (stop 2\n * of 3 and stop 2 of 5 are not the same place), so it snaps at the\n * midpoint: a ramp that silently gained stops mid-tween reads as a bug.\n */\n colors: param.of<Color[]>()({\n kind: \"colors\",\n default: GLOW_RAMP_COLORS,\n hidden: true,\n order: 13,\n lerp: (a, b, t) => (a.length !== b.length ? (t < 0.5 ? a : b) : a.map((c, i) => lerpColor(resolveEffectColor(c), resolveEffectColor(b[i]), t))),\n equals: (a, b) => a.length === b.length && a.every((c, i) => sameEffectColor(c, b[i])),\n }),\n /** Each ramp colour's position, 0-1 ascending (evenly spaced when absent). */\n stops: param.of<number[]>()({\n kind: \"numbers\",\n default: GLOW_RAMP_STOPS,\n hidden: true,\n order: 14,\n lerp: (a, b, t, from, to) => ((from.colors as Color[]).length !== (to.colors as Color[]).length\n ? (t < 0.5 ? a : b)\n : a.map((s, i) => lerpNumber(s, b[i] ?? s, t))),\n equals: (a, b) => a.length === b.length && a.every((s, i) => s === b[i]),\n }),\n /** How the ramp repeats past one pass. */\n loopStyle: param.choice([\"mirror\", \"repeat\"] satisfies GlowLoopStyle[], { default: \"mirror\", control: \"segmented\", optionsLabel: \"glowLoopStyle\", order: 6 }),\n /** Ramp traversals across the glow's strength range. */\n cycles: param.number({ default: 1, min: 1, max: 10, step: 0.1, order: 7 }),\n /** Offset along the ramp in degrees of one cycle; animate to move colour. */\n phase: param.number({ default: 0, unit: \"deg\", control: \"angle\", order: 8 }),\n },\n});\n\nexport const glowEffect: EffectData<GlowEffect> = effectDataOf(glowSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"grain.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/grain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAmB/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,mDAAmD;IACnD,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,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACxF,iCAAiC;QACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QAC1E,iEAAiE;QACjE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC3C,6CAA6C;QAC7C,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC3C,6DAA6D;QAC7D,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KAC7C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,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 * Film grain — per-pixel noise blended into the node's own content.\r\n *\r\n * The noise is *signed* (it lightens and darkens around the source value) and\r\n * scaled by the local alpha, so it never bleeds past the silhouette and never\r\n * shifts the average exposure.\r\n *\r\n * Grain that doesn't move reads as a texture rather than as film, so\r\n * {@link animated} re-seeds the field every frame from the node's elapsed time.\r\n * For a deterministic render (e.g. a pixel-diff test) leave it off and animate\r\n * {@link seed} instead — a tween over `seed` gives the same shimmer frame-locked\r\n * to the timeline.\r\n */\r\nexport interface GrainEffect extends ModedEffect, EffectFields<typeof grainSpec.params> {\r\n type: \"grain\";\r\n}\r\n\r\n/** The {@link GrainEffect} spec: its parameters, defaults and ranges. */\r\nexport const grainSpec = defineEffect({\r\n type: \"grain\",\r\n group: \"stylize\",\r\n // Hashes each pixel's position into a noise value.\r\n surface: \"shader\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** 0–1 noise amplitude. */\r\n amount: param.number({ default: 0.25, min: 0, max: 1, control: \"slider\", inline: true }),\r\n /** Grain cell size in pixels. */\r\n size: param.number({ default: 1, min: 1, unit: \"px\", label: \"grainSize\" }),\r\n /** Random field offset — animate it for frame-locked shimmer. */\r\n seed: param.number({ default: 0, step: 1 }),\r\n /** Re-seed every frame from elapsed time. */\r\n animated: param.boolean({ default: false }),\r\n /** Per-channel colour speckle instead of luminance noise. */\r\n colored: param.boolean({ default: false }),\r\n },\r\n});\r\n\r\nexport const grainEffect: EffectData<GrainEffect> = effectDataOf(grainSpec);\r\n"]}
1
+ {"version":3,"file":"grain.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/grain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAmB/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,mDAAmD;IACnD,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,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACxF,iCAAiC;QACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QAC1E,iEAAiE;QACjE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC3C,6CAA6C;QAC7C,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC3C,6DAA6D;QAC7D,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KAC7C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Film grain — per-pixel noise blended into the node's own content.\n *\n * The noise is *signed* (it lightens and darkens around the source value) and\n * scaled by the local alpha, so it never bleeds past the silhouette and never\n * shifts the average exposure.\n *\n * Grain that doesn't move reads as a texture rather than as film, so\n * {@link animated} re-seeds the field every frame from the node's elapsed time.\n * For a deterministic render (e.g. a pixel-diff test) leave it off and animate\n * {@link seed} instead — a tween over `seed` gives the same shimmer frame-locked\n * to the timeline.\n */\nexport interface GrainEffect extends ModedEffect, EffectFields<typeof grainSpec.params> {\n type: \"grain\";\n}\n\n/** The {@link GrainEffect} spec: its parameters, defaults and ranges. */\nexport const grainSpec = defineEffect({\n type: \"grain\",\n group: \"stylize\",\n // Hashes each pixel's position into a noise value.\n surface: \"shader\",\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** 0–1 noise amplitude. */\n amount: param.number({ default: 0.25, min: 0, max: 1, control: \"slider\", inline: true }),\n /** Grain cell size in pixels. */\n size: param.number({ default: 1, min: 1, unit: \"px\", label: \"grainSize\" }),\n /** Random field offset — animate it for frame-locked shimmer. */\n seed: param.number({ default: 0, step: 1 }),\n /** Re-seed every frame from elapsed time. */\n animated: param.boolean({ default: false }),\n /** Per-channel colour speckle instead of luminance noise. */\n colored: param.boolean({ default: false }),\n },\n});\n\nexport const grainEffect: EffectData<GrainEffect> = effectDataOf(grainSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"grayscale.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/grayscale.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,gDAAgD;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;KACpH;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\nexport interface GrayscaleEffect extends ModedEffect, EffectFields<typeof grayscaleSpec.params> {\r\n type: \"grayscale\";\r\n}\r\n\r\n/** The {@link GrayscaleEffect} spec: its parameters, defaults and ranges. */\r\nexport const grayscaleSpec = defineEffect({\r\n type: \"grayscale\",\r\n group: \"color\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** 0–1: 0 = original, 1 = fully desaturated. */\r\n amount: param.number({ default: 0, required: true, min: 0, max: 1, control: \"slider\", inline: true, initial: 1 }),\r\n },\r\n});\r\n\r\nexport const grayscaleEffect: EffectData<GrayscaleEffect> = effectDataOf(grayscaleSpec);\r\n"]}
1
+ {"version":3,"file":"grayscale.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/grayscale.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,gDAAgD;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;KACpH;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\nexport interface GrayscaleEffect extends ModedEffect, EffectFields<typeof grayscaleSpec.params> {\n type: \"grayscale\";\n}\n\n/** The {@link GrayscaleEffect} spec: its parameters, defaults and ranges. */\nexport const grayscaleSpec = defineEffect({\n type: \"grayscale\",\n group: \"color\",\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** 0–1: 0 = original, 1 = fully desaturated. */\n amount: param.number({ default: 0, required: true, min: 0, max: 1, control: \"slider\", inline: true, initial: 1 }),\n },\n});\n\nexport const grayscaleEffect: EffectData<GrayscaleEffect> = effectDataOf(grayscaleSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"halftone.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/halftone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoC/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,uEAAuE;IACvE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,+EAA+E;IAC/E,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IACtB,MAAM,EAAE;QACJ,4BAA4B;QAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACvF,kCAAkC;QAClC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QACzF,2BAA2B;QAC3B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAA2B,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;QAC1H,6BAA6B;QAC7B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAgC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC;KAC5I;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 * The screen pattern each halftone cell is drawn with.\r\n *\r\n * - `\"dot\"` — the classic circular dot that grows with tone.\r\n * - `\"line\"` — a line screen: parallel rules that thicken with tone.\r\n * - `\"cross\"` — crossed rules, a coarse engraving / crosshatch.\r\n */\r\nexport type HalftoneShape = \"dot\" | \"line\" | \"cross\";\r\n\r\n/**\r\n * How many plates the screen is separated into.\r\n *\r\n * - `\"mono\"` — one black screen over luminance. The newsprint look.\r\n * - `\"cmyk\"` — four plates at the classic process angles (C 15°, M 75°, Y 0°,\r\n * K 45°). Pulling the shared darkness onto a K plate is what keeps neutrals\r\n * neutral, so this is the one that reads as *printed*.\r\n * - `\"rgb\"` — one screen per RGB channel. Cheaper and occasionally the look you\r\n * want, but with no K plate every grey prints three overlapping mid-dots, so\r\n * anything neutral turns to colour noise. Prefer `\"cmyk\"` for print looks.\r\n */\r\nexport type HalftoneSeparation = \"mono\" | \"rgb\" | \"cmyk\";\r\n\r\n/**\r\n * Halftone screen — the newsprint / comic-book look. The image is divided into a\r\n * rotated grid of cells and each cell's tone becomes the size of a mark, so\r\n * continuous shading is reproduced by varying dot area rather than intensity.\r\n *\r\n * `separation` picks how many plates the image is split across — see\r\n * {@link HalftoneSeparation}.\r\n */\r\nexport interface HalftoneEffect extends ModedEffect, EffectFields<typeof halftoneSpec.params> {\r\n type: \"halftone\";\r\n}\r\n\r\n/** The {@link HalftoneEffect} spec: its parameters, defaults and ranges. */\r\nexport const halftoneSpec = defineEffect({\r\n type: \"halftone\",\r\n group: \"stylize\",\r\n // Cell position drives the mark, so it needs each pixel's coordinates.\r\n surface: \"shader\",\r\n scalar: \"size\",\r\n // Resolution-relative: inert only while the cell is finer than the pixel grid.\r\n neutral: { size: 0.5 },\r\n params: {\r\n /** Cell pitch in pixels. */\r\n size: param.number({ default: 8, min: 1, unit: \"px\", label: \"cellSize\", inline: true }),\r\n /** Screen rotation in degrees. */\r\n angle: param.number({ default: 45, unit: \"deg\", control: \"angle\", label: \"screenAngle\" }),\r\n /** Mark drawn per cell. */\r\n shape: param.choice([\"dot\", \"line\", \"cross\"] satisfies HalftoneShape[], { default: \"dot\", optionsLabel: \"halftoneShape\" }),\r\n /** Plates to screen into. */\r\n separation: param.choice([\"mono\", \"rgb\", \"cmyk\"] satisfies HalftoneSeparation[], { default: \"mono\", optionsLabel: \"halftoneSeparation\" }),\r\n },\r\n});\r\n\r\nexport const halftoneEffect: EffectData<HalftoneEffect> = effectDataOf(halftoneSpec);\r\n"]}
1
+ {"version":3,"file":"halftone.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/halftone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoC/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,uEAAuE;IACvE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,+EAA+E;IAC/E,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IACtB,MAAM,EAAE;QACJ,4BAA4B;QAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACvF,kCAAkC;QAClC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QACzF,2BAA2B;QAC3B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAA2B,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;QAC1H,6BAA6B;QAC7B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAgC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC;KAC5I;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 * The screen pattern each halftone cell is drawn with.\n *\n * - `\"dot\"` — the classic circular dot that grows with tone.\n * - `\"line\"` — a line screen: parallel rules that thicken with tone.\n * - `\"cross\"` — crossed rules, a coarse engraving / crosshatch.\n */\nexport type HalftoneShape = \"dot\" | \"line\" | \"cross\";\n\n/**\n * How many plates the screen is separated into.\n *\n * - `\"mono\"` — one black screen over luminance. The newsprint look.\n * - `\"cmyk\"` — four plates at the classic process angles (C 15°, M 75°, Y 0°,\n * K 45°). Pulling the shared darkness onto a K plate is what keeps neutrals\n * neutral, so this is the one that reads as *printed*.\n * - `\"rgb\"` — one screen per RGB channel. Cheaper and occasionally the look you\n * want, but with no K plate every grey prints three overlapping mid-dots, so\n * anything neutral turns to colour noise. Prefer `\"cmyk\"` for print looks.\n */\nexport type HalftoneSeparation = \"mono\" | \"rgb\" | \"cmyk\";\n\n/**\n * Halftone screen — the newsprint / comic-book look. The image is divided into a\n * rotated grid of cells and each cell's tone becomes the size of a mark, so\n * continuous shading is reproduced by varying dot area rather than intensity.\n *\n * `separation` picks how many plates the image is split across — see\n * {@link HalftoneSeparation}.\n */\nexport interface HalftoneEffect extends ModedEffect, EffectFields<typeof halftoneSpec.params> {\n type: \"halftone\";\n}\n\n/** The {@link HalftoneEffect} spec: its parameters, defaults and ranges. */\nexport const halftoneSpec = defineEffect({\n type: \"halftone\",\n group: \"stylize\",\n // Cell position drives the mark, so it needs each pixel's coordinates.\n surface: \"shader\",\n scalar: \"size\",\n // Resolution-relative: inert only while the cell is finer than the pixel grid.\n neutral: { size: 0.5 },\n params: {\n /** Cell pitch in pixels. */\n size: param.number({ default: 8, min: 1, unit: \"px\", label: \"cellSize\", inline: true }),\n /** Screen rotation in degrees. */\n angle: param.number({ default: 45, unit: \"deg\", control: \"angle\", label: \"screenAngle\" }),\n /** Mark drawn per cell. */\n shape: param.choice([\"dot\", \"line\", \"cross\"] satisfies HalftoneShape[], { default: \"dot\", optionsLabel: \"halftoneShape\" }),\n /** Plates to screen into. */\n separation: param.choice([\"mono\", \"rgb\", \"cmyk\"] satisfies HalftoneSeparation[], { default: \"mono\", optionsLabel: \"halftoneSeparation\" }),\n },\n});\n\nexport const halftoneEffect: EffectData<HalftoneEffect> = effectDataOf(halftoneSpec);\n"]}
@@ -16,12 +16,12 @@ export interface InvertEffect extends ModedEffect, EffectFields<typeof invertSpe
16
16
  /** The {@link InvertEffect} spec: its parameters, defaults and ranges. */
17
17
  export declare const invertSpec: import("../spec.js").EffectSpec<"invert", {
18
18
  /** Which channel / colour component to invert. */
19
- readonly channel: import("../spec.js").EffectParamDef<"hue" | "red" | "green" | "blue" | "rgba" | "alpha" | "luminance", "hue" | "red" | "green" | "blue" | "rgba" | "alpha" | "luminance"> & NoInfer<{
19
+ readonly channel: import("../spec.js").EffectParamDef<"blue" | "green" | "red" | "alpha" | "hue" | "rgba" | "luminance", "blue" | "green" | "red" | "alpha" | "hue" | "rgba" | "luminance"> & NoInfer<{
20
20
  readonly default: "rgba";
21
21
  readonly optionsLabel: "invertChannel";
22
22
  }> & {
23
23
  kind: "enum";
24
- options: readonly ("hue" | "red" | "green" | "blue" | "rgba" | "alpha" | "luminance")[];
24
+ options: readonly ("blue" | "green" | "red" | "alpha" | "hue" | "rgba" | "luminance")[];
25
25
  };
26
26
  /** 0–1: blend from original (0) to fully inverted (1). */
27
27
  readonly strength: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
@@ -1 +1 @@
1
- {"version":3,"file":"invert.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/invert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAwB/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,kDAAkD;QAClD,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,CAA2B,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;QAClK,0DAA0D;QAC1D,QAAQ,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;KAC1F;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 * Which channel(s) / colour space component the invert is applied to.\r\n *\r\n * - `'red' | 'green' | 'blue'` — invert a single RGB channel.\r\n * - `'rgba'` — invert red, green and blue (alpha untouched).\r\n * - `'alpha'` — invert the alpha channel.\r\n * - `'hue'` — rotate hue by 180°.\r\n * - `'luminance'` — invert perceptual luminance (BT.709) while preserving chroma.\r\n */\r\nexport type InvertChannel =\r\n | \"red\"\r\n | \"green\"\r\n | \"blue\"\r\n | \"rgba\"\r\n | \"alpha\"\r\n | \"hue\"\r\n | \"luminance\";\r\n\r\nexport interface InvertEffect extends ModedEffect, EffectFields<typeof invertSpec.params> {\r\n type: \"invert\";\r\n}\r\n\r\n/** The {@link InvertEffect} spec: its parameters, defaults and ranges. */\r\nexport const invertSpec = defineEffect({\r\n type: \"invert\",\r\n group: \"color\",\r\n scalar: \"strength\",\r\n neutral: { strength: 0 },\r\n params: {\r\n /** Which channel / colour component to invert. */\r\n channel: param.choice([\"rgba\", \"red\", \"green\", \"blue\", \"alpha\", \"hue\", \"luminance\"] satisfies InvertChannel[], { default: \"rgba\", optionsLabel: \"invertChannel\" }),\r\n /** 0–1: blend from original (0) to fully inverted (1). */\r\n strength: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\r\n },\r\n});\r\n\r\nexport const invertEffect: EffectData<InvertEffect> = effectDataOf(invertSpec);\r\n"]}
1
+ {"version":3,"file":"invert.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/invert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAwB/E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,kDAAkD;QAClD,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,CAA2B,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;QAClK,0DAA0D;QAC1D,QAAQ,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;KAC1F;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 * Which channel(s) / colour space component the invert is applied to.\n *\n * - `'red' | 'green' | 'blue'` — invert a single RGB channel.\n * - `'rgba'` — invert red, green and blue (alpha untouched).\n * - `'alpha'` — invert the alpha channel.\n * - `'hue'` — rotate hue by 180°.\n * - `'luminance'` — invert perceptual luminance (BT.709) while preserving chroma.\n */\nexport type InvertChannel =\n | \"red\"\n | \"green\"\n | \"blue\"\n | \"rgba\"\n | \"alpha\"\n | \"hue\"\n | \"luminance\";\n\nexport interface InvertEffect extends ModedEffect, EffectFields<typeof invertSpec.params> {\n type: \"invert\";\n}\n\n/** The {@link InvertEffect} spec: its parameters, defaults and ranges. */\nexport const invertSpec = defineEffect({\n type: \"invert\",\n group: \"color\",\n scalar: \"strength\",\n neutral: { strength: 0 },\n params: {\n /** Which channel / colour component to invert. */\n channel: param.choice([\"rgba\", \"red\", \"green\", \"blue\", \"alpha\", \"hue\", \"luminance\"] satisfies InvertChannel[], { default: \"rgba\", optionsLabel: \"invertChannel\" }),\n /** 0–1: blend from original (0) to fully inverted (1). */\n strength: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\n },\n});\n\nexport const invertEffect: EffectData<InvertEffect> = effectDataOf(invertSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"kaleidoscope.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/kaleidoscope.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoBvF,gFAAgF;AAChF,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;IACzC,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,SAAS;IAChB,gDAAgD;IAChD,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,kEAAkE;IAClE,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ;;;WAGG;QACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACnH,wEAAwE;QACxE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzD,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,YAAY,EAAE,CAAC;QAC5G,0CAA0C;QAC1C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAC9F,yDAAyD;QACzD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KAC1E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAmC,YAAY,CAAC,gBAAgB,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 * Kaleidoscope — the content is folded into `segments` mirrored wedges around\r\n * `center`, so one slice of the source is repeated around a circle.\r\n *\r\n * Only the wedge starting at `angle` is ever read; every other segment is that\r\n * same wedge reflected or rotated into place. That is why rotating `angle`\r\n * animates so well — the pattern stays locked while *different source material*\r\n * sweeps through the wedge, which is the effect people actually want and is not\r\n * the same as rotating the node.\r\n *\r\n * `segments` counts the mirrored pairs, so 6 gives the familiar snowflake. It is\r\n * discrete: a tween snaps rather than passing through a fractional fold, which\r\n * would tear.\r\n */\r\nexport interface KaleidoscopeEffect extends ModedEffect, EffectFields<typeof kaleidoscopeSpec.params> {\r\n type: \"kaleidoscope\";\r\n}\r\n\r\n/** The {@link KaleidoscopeEffect} spec: its parameters, defaults and ranges. */\r\nexport const kaleidoscopeSpec = defineEffect({\r\n type: \"kaleidoscope\",\r\n group: \"distort\",\r\n // Resamples the source at a reflected position.\r\n surface: \"shader\",\r\n scalar: \"segments\",\r\n // `segments` is discrete, so the neutral is the continuous blend.\r\n neutral: { amount: 0 },\r\n params: {\r\n /**\r\n * Number of mirrored wedges; below 2 is a no-op. Discrete: a fractional\r\n * wedge cannot tile the circle, so it rounds and a tween snaps.\r\n */\r\n segments: param.number({ default: 6, normalize: Math.round, min: 2, max: 64, step: 1, lerp: \"step\", inline: true }),\r\n /** Rotation of the pattern in degrees — animate to sweep the source. */\r\n angle: param.number({ default: 0, step: 1, unit: \"deg\" }),\r\n /** Fold origin in 0–1 layer coords. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"foldCenter\" }),\r\n /** Radial offset of the sampled wedge. */\r\n offset: param.number({ default: 0, min: -1, max: 1, control: \"slider\", label: \"wedgeOffset\" }),\r\n /** 0–1 blend from the original to the folded pattern. */\r\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\" }),\r\n },\r\n});\r\n\r\nexport const kaleidoscopeEffect: EffectData<KaleidoscopeEffect> = effectDataOf(kaleidoscopeSpec);\r\n"]}
1
+ {"version":3,"file":"kaleidoscope.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/kaleidoscope.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoBvF,gFAAgF;AAChF,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;IACzC,IAAI,EAAE,c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,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Kaleidoscope — the content is folded into `segments` mirrored wedges around\n * `center`, so one slice of the source is repeated around a circle.\n *\n * Only the wedge starting at `angle` is ever read; every other segment is that\n * same wedge reflected or rotated into place. That is why rotating `angle`\n * animates so well — the pattern stays locked while *different source material*\n * sweeps through the wedge, which is the effect people actually want and is not\n * the same as rotating the node.\n *\n * `segments` counts the mirrored pairs, so 6 gives the familiar snowflake. It is\n * discrete: a tween snaps rather than passing through a fractional fold, which\n * would tear.\n */\nexport interface KaleidoscopeEffect extends ModedEffect, EffectFields<typeof kaleidoscopeSpec.params> {\n type: \"kaleidoscope\";\n}\n\n/** The {@link KaleidoscopeEffect} spec: its parameters, defaults and ranges. */\nexport const kaleidoscopeSpec = defineEffect({\n type: \"kaleidoscope\",\n group: \"distort\",\n // Resamples the source at a reflected position.\n surface: \"shader\",\n scalar: \"segments\",\n // `segments` is discrete, so the neutral is the continuous blend.\n neutral: { amount: 0 },\n params: {\n /**\n * Number of mirrored wedges; below 2 is a no-op. Discrete: a fractional\n * wedge cannot tile the circle, so it rounds and a tween snaps.\n */\n segments: param.number({ default: 6, normalize: Math.round, min: 2, max: 64, step: 1, lerp: \"step\", inline: true }),\n /** Rotation of the pattern in degrees — animate to sweep the source. */\n angle: param.number({ default: 0, step: 1, unit: \"deg\" }),\n /** Fold origin in 0–1 layer coords. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"foldCenter\" }),\n /** Radial offset of the sampled wedge. */\n offset: param.number({ default: 0, min: -1, max: 1, control: \"slider\", label: \"wedgeOffset\" }),\n /** 0–1 blend from the original to the folded pattern. */\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\" }),\n },\n});\n\nexport const kaleidoscopeEffect: EffectData<KaleidoscopeEffect> = effectDataOf(kaleidoscopeSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"lut.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/lut.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAwC/E,uEAAuE;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,OAAO;IACd,4EAA4E;IAC5E,wEAAwE;IACxE,yBAAyB;IACzB,OAAO,EAAE,QAAQ;IACjB,6CAA6C;IAC7C,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,qFAAqF;QACrF,KAAK,EAAE,KAAK,CAAC,EAAE,EAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAChF;;;WAGG;QACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACnF,2CAA2C;QAC3C,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;KACxF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAA0B,YAAY,CAAC,OAAO,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 * A 3D colour lookup table — the `.cube` a colourist hands you.\r\n *\r\n * The one adjustment in the roster that is not a formula. Everything else here\r\n * says what to *do* to a colour; a LUT is a measured cube of what each colour\r\n * should *become*, which is how film-stock and print emulations are shipped and\r\n * why no combination of curves and matrices substitutes for one. Applying it is\r\n * a trilinear lookup per pixel.\r\n *\r\n * A node effect rather than a media-only adjustment, deliberately: everything\r\n * outside {@link NonFilterEffect} is automatically an `EffectAdjustment` too, so\r\n * one implementation grades an image fill's own pixels *and* a whole node —\r\n * which is what lets a graded photo and the graded titles over it be the same\r\n * look rather than two things kept in step by hand.\r\n *\r\n * ## The table\r\n *\r\n * Flat RGB triples, **red-fastest** — index `((b · size) + g) · size + r`, times\r\n * three — which is the order a `.cube` file writes its lines in, so a parser\r\n * fills this with no transposition to get wrong.\r\n *\r\n * It is a `Float32Array` and it is treated as **immutable and shared**: `equals`\r\n * compares it by reference and `lerp` hard-cuts it, exactly as `texture` does\r\n * with its `src`. That is not laziness. A 33³ cube is 107,811 floats; comparing\r\n * it per frame would cost more than the draw, interpolating it would allocate a\r\n * second cube per frame, and the renderer's GPU upload is cached against this\r\n * very identity. Hand the same array back each frame and a LUT costs one texture\r\n * upload for the life of the scene; build a fresh one per frame and it costs one\r\n * per frame.\r\n *\r\n * Cross-fading two *different* LUTs is therefore a cut, not a blend. That is the\r\n * honest answer — there is no meaningful midpoint between two measured cubes —\r\n * and the way to dissolve between looks is two fills, or {@link amount}.\r\n */\r\nexport interface LutEffect extends ModedEffect, EffectFields<typeof lutSpec.params> {\r\n type: \"lut\";\r\n}\r\n\r\n/** The {@link LutEffect} spec: its parameters, defaults and ranges. */\r\nexport const lutSpec = defineEffect({\r\n type: \"lut\",\r\n group: \"color\",\r\n // It samples a second texture at a coordinate derived from the source's own\r\n // colour, so it needs the source as a shader it can read — not a colour\r\n // matrix it can compose.\r\n surface: \"shader\",\r\n // A LUT's neutral is its mix, not its table.\r\n neutral: { amount: 0 },\r\n params: {\r\n /** The cube: flat RGB triples, red-fastest. Compared by reference, cut by `lerp`. */\r\n table: param.of<Float32Array>()({ kind: \"table\", required: true, hidden: true }),\r\n /**\r\n * Entries per axis. Cuts with the table: a table read at the wrong stride\r\n * is not a wrong colour, it is garbage.\r\n */\r\n size: param.number({ required: true, min: 2, step: 1, lerp: \"step\", hidden: true }),\r\n /** 0–1 mix against the ungraded colour. */\r\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\r\n },\r\n});\r\n\r\nexport const lutEffect: EffectData<LutEffect> = effectDataOf(lutSpec);\r\n"]}
1
+ {"version":3,"file":"lut.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/lut.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAwC/E,uEAAuE;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,OAAO;IACd,4EAA4E;IAC5E,wEAAwE;IACxE,yBAAyB;IACzB,OAAO,EAAE,QAAQ;IACjB,6CAA6C;IAC7C,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,qFAAqF;QACrF,KAAK,EAAE,KAAK,CAAC,EAAE,EAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAChF;;;WAGG;QACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACnF,2CAA2C;QAC3C,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;KACxF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAA0B,YAAY,CAAC,OAAO,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * A 3D colour lookup table — the `.cube` a colourist hands you.\n *\n * The one adjustment in the roster that is not a formula. Everything else here\n * says what to *do* to a colour; a LUT is a measured cube of what each colour\n * should *become*, which is how film-stock and print emulations are shipped and\n * why no combination of curves and matrices substitutes for one. Applying it is\n * a trilinear lookup per pixel.\n *\n * A node effect rather than a media-only adjustment, deliberately: everything\n * outside {@link NonFilterEffect} is automatically an `EffectAdjustment` too, so\n * one implementation grades an image fill's own pixels *and* a whole node —\n * which is what lets a graded photo and the graded titles over it be the same\n * look rather than two things kept in step by hand.\n *\n * ## The table\n *\n * Flat RGB triples, **red-fastest** — index `((b · size) + g) · size + r`, times\n * three — which is the order a `.cube` file writes its lines in, so a parser\n * fills this with no transposition to get wrong.\n *\n * It is a `Float32Array` and it is treated as **immutable and shared**: `equals`\n * compares it by reference and `lerp` hard-cuts it, exactly as `texture` does\n * with its `src`. That is not laziness. A 33³ cube is 107,811 floats; comparing\n * it per frame would cost more than the draw, interpolating it would allocate a\n * second cube per frame, and the renderer's GPU upload is cached against this\n * very identity. Hand the same array back each frame and a LUT costs one texture\n * upload for the life of the scene; build a fresh one per frame and it costs one\n * per frame.\n *\n * Cross-fading two *different* LUTs is therefore a cut, not a blend. That is the\n * honest answer — there is no meaningful midpoint between two measured cubes —\n * and the way to dissolve between looks is two fills, or {@link amount}.\n */\nexport interface LutEffect extends ModedEffect, EffectFields<typeof lutSpec.params> {\n type: \"lut\";\n}\n\n/** The {@link LutEffect} spec: its parameters, defaults and ranges. */\nexport const lutSpec = defineEffect({\n type: \"lut\",\n group: \"color\",\n // It samples a second texture at a coordinate derived from the source's own\n // colour, so it needs the source as a shader it can read — not a colour\n // matrix it can compose.\n surface: \"shader\",\n // A LUT's neutral is its mix, not its table.\n neutral: { amount: 0 },\n params: {\n /** The cube: flat RGB triples, red-fastest. Compared by reference, cut by `lerp`. */\n table: param.of<Float32Array>()({ kind: \"table\", required: true, hidden: true }),\n /**\n * Entries per axis. Cuts with the table: a table read at the wrong stride\n * is not a wrong colour, it is garbage.\n */\n size: param.number({ required: true, min: 2, step: 1, lerp: \"step\", hidden: true }),\n /** 0–1 mix against the ungraded colour. */\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\n },\n});\n\nexport const lutEffect: EffectData<LutEffect> = effectDataOf(lutSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"magnify.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/magnify.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAMvF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,yCAAyC;IACzC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,iEAAiE;QACjE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC5G,0CAA0C;QAC1C,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,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\nexport interface MagnifyEffect extends ModedEffect, EffectFields<typeof magnifySpec.params> {\r\n type: \"magnify\";\r\n}\r\n\r\n/** The {@link MagnifyEffect} spec: its parameters, defaults and ranges. */\r\nexport const magnifySpec = defineEffect({\r\n type: \"magnify\",\r\n group: \"distort\",\r\n // Resamples the backdrop about `center`.\r\n surface: \"shader\",\r\n scalar: \"scale\",\r\n defaultMode: \"backdrop\",\r\n onlyOn: \"backdrop\",\r\n neutral: { scale: 1 },\r\n params: {\r\n /** Magnification factor — 1 = none, 2 = 2×, 0.5 = zoomed out. */\r\n scale: param.number({ default: 2, min: 0, step: 0.1, unit: \"factor\", label: \"magnification\", inline: true }),\r\n /** Magnify centre in 0–1 layer coords. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"lensCenter\" }),\r\n },\r\n});\r\n\r\nexport const magnifyEffect: EffectData<MagnifyEffect> = effectDataOf(magnifySpec);\r\n"]}
1
+ {"version":3,"file":"magnify.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/magnify.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAMvF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,yCAAyC;IACzC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,iEAAiE;QACjE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC5G,0CAA0C;QAC1C,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,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\nexport interface MagnifyEffect extends ModedEffect, EffectFields<typeof magnifySpec.params> {\n type: \"magnify\";\n}\n\n/** The {@link MagnifyEffect} spec: its parameters, defaults and ranges. */\nexport const magnifySpec = defineEffect({\n type: \"magnify\",\n group: \"distort\",\n // Resamples the backdrop about `center`.\n surface: \"shader\",\n scalar: \"scale\",\n defaultMode: \"backdrop\",\n onlyOn: \"backdrop\",\n neutral: { scale: 1 },\n params: {\n /** Magnification factor — 1 = none, 2 = 2×, 0.5 = zoomed out. */\n scale: param.number({ default: 2, min: 0, step: 0.1, unit: \"factor\", label: \"magnification\", inline: true }),\n /** Magnify centre in 0–1 layer coords. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"lensCenter\" }),\n },\n});\n\nexport const magnifyEffect: EffectData<MagnifyEffect> = effectDataOf(magnifySpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"motion-blur.js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Q,EAAE,OAAO,CAAC;YACxC,YAAY,EAAE,qBAAqB;YACnC,0DAA0D;YAC1D,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,0BAA0B,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAC9F,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC,KAAK,0BAA0B,CAAC,CAAC,CAAC;SACpF,CAAC;QACF,0EAA0E;QAC1E,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrE,8BAA8B;QAC9B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACzE,+BAA+B;QAC/B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YACb,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SAChF,CAAC;KACL;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\r\nimport { lerpVector2 } from \"@/attributes/layout/vector2\";\r\nimport type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { resolveEffectAxis } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/** Shutter phase presets — see {@link MotionBlurEffect.alignment}. */\r\nexport type MotionBlurAlignment = \"behind\" | \"centered\" | \"ahead\" | number;\r\n\r\n/**\r\n * Velocity-driven motion blur. Unlike {@link DirectionalBlurEffect}, whose smear\r\n * is authored, this derives its direction and length from the node's actual\r\n * per-frame motion (sampled by the renderer), modelled on After Effects' shutter\r\n * angle (`length`) and shutter phase (`alignment`). A static node renders sharp.\r\n */\r\nexport interface MotionBlurEffect extends ModedEffect, EffectFields<typeof motionBlurSpec.params> {\r\n type: \"motionBlur\";\r\n}\r\n\r\n/** Resolve {@link MotionBlurEffect.alignment} to a shutter-phase number in −1…1. */\r\nexport function resolveMotionBlurAlignment(alignment: MotionBlurAlignment): number {\r\n switch (alignment) {\r\n case \"behind\": return -1;\r\n case \"centered\": return 0;\r\n case \"ahead\": return 1;\r\n default: return Math.max(-1, Math.min(1, alignment));\r\n }\r\n}\r\n\r\n/** The {@link MotionBlurEffect} spec: its parameters, defaults and ranges. */\r\nexport const motionBlurSpec = defineEffect({\r\n type: \"motionBlur\",\r\n group: \"blur\",\r\n scalar: \"length\",\r\n neutral: { length: 0 },\r\n params: {\r\n /**\r\n * Shutter \"openness\" as a percentage, the user-friendly form of a shutter\r\n * angle. `100` ≈ 360° = a smear spanning the node's full per-frame\r\n * displacement; `0` = no blur.\r\n */\r\n length: param.number({ default: 50, min: 0, unit: \"percent\", label: \"shutter\", inline: true }),\r\n /**\r\n * Shutter phase — where the smear sits relative to the node's current\r\n * position along its motion: `'behind'` (−1) trails it, `'centered'` (0)\r\n * straddles it, `'ahead'` (1) leads it; a number in −1…1 sits between.\r\n */\r\n alignment: param.of<MotionBlurAlignment>()({\r\n kind: \"enum\",\r\n default: \"centered\",\r\n options: [\"centered\", \"behind\", \"ahead\"],\r\n optionsLabel: \"motionBlurAlignment\",\r\n // Resolved to a phase, so e.g. 'behind' → 'ahead' sweeps.\r\n lerp: (a, b, t) => lerpNumber(resolveMotionBlurAlignment(a), resolveMotionBlurAlignment(b), t),\r\n equals: (a, b) => resolveMotionBlurAlignment(a) === resolveMotionBlurAlignment(b),\r\n }),\r\n /** Renderer quality hint; above 32 switches to multi-tap accumulation. */\r\n samples: param.number({ default: 16, min: 1, step: 1, hidden: true }),\r\n /** Blur-length multiplier. */\r\n strength: param.number({ default: 1, min: 0, max: 2, control: \"slider\" }),\r\n /** Per-axis velocity scale. */\r\n axis: param.axis({\r\n default: \"both\",\r\n optionsLabel: \"effectAxis\",\r\n lerp: (a, b, t) => lerpVector2(resolveEffectAxis(a), resolveEffectAxis(b), t),\r\n }),\r\n },\r\n});\r\n\r\nexport const motionBlurEffect: EffectData<MotionBlurEffect> = effectDataOf(motionBlurSpec);\r\n"]}
1
+ {"version":3,"file":"motion-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/motion-blur.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAe/E,oFAAoF;AACpF,MAAM,UAAU,0BAA0B,CAAC,SAA8B;IACrE,QAAQ,SAAS,EAAE,CAAC;QAChB,KAAK,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACzB,KAAK,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;QAC1B,KAAK,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;QACvB,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;IACzD,CAAC;AACL,CAAC;AAED,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,YA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CAAC;YACb,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SAChF,CAAC;KACL;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport { lerpVector2 } from \"@/attributes/layout/vector2\";\nimport type { ModedEffect, EffectData } from \"../effect-data\";\nimport { resolveEffectAxis } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** Shutter phase presets — see {@link MotionBlurEffect.alignment}. */\nexport type MotionBlurAlignment = \"behind\" | \"centered\" | \"ahead\" | number;\n\n/**\n * Velocity-driven motion blur. Unlike {@link DirectionalBlurEffect}, whose smear\n * is authored, this derives its direction and length from the node's actual\n * per-frame motion (sampled by the renderer), modelled on After Effects' shutter\n * angle (`length`) and shutter phase (`alignment`). A static node renders sharp.\n */\nexport interface MotionBlurEffect extends ModedEffect, EffectFields<typeof motionBlurSpec.params> {\n type: \"motionBlur\";\n}\n\n/** Resolve {@link MotionBlurEffect.alignment} to a shutter-phase number in −1…1. */\nexport function resolveMotionBlurAlignment(alignment: MotionBlurAlignment): number {\n switch (alignment) {\n case \"behind\": return -1;\n case \"centered\": return 0;\n case \"ahead\": return 1;\n default: return Math.max(-1, Math.min(1, alignment));\n }\n}\n\n/** The {@link MotionBlurEffect} spec: its parameters, defaults and ranges. */\nexport const motionBlurSpec = defineEffect({\n type: \"motionBlur\",\n group: \"blur\",\n scalar: \"length\",\n neutral: { length: 0 },\n params: {\n /**\n * Shutter \"openness\" as a percentage, the user-friendly form of a shutter\n * angle. `100` ≈ 360° = a smear spanning the node's full per-frame\n * displacement; `0` = no blur.\n */\n length: param.number({ default: 50, min: 0, unit: \"percent\", label: \"shutter\", inline: true }),\n /**\n * Shutter phase — where the smear sits relative to the node's current\n * position along its motion: `'behind'` (−1) trails it, `'centered'` (0)\n * straddles it, `'ahead'` (1) leads it; a number in −1…1 sits between.\n */\n alignment: param.of<MotionBlurAlignment>()({\n kind: \"enum\",\n default: \"centered\",\n options: [\"centered\", \"behind\", \"ahead\"],\n optionsLabel: \"motionBlurAlignment\",\n // Resolved to a phase, so e.g. 'behind' → 'ahead' sweeps.\n lerp: (a, b, t) => lerpNumber(resolveMotionBlurAlignment(a), resolveMotionBlurAlignment(b), t),\n equals: (a, b) => resolveMotionBlurAlignment(a) === resolveMotionBlurAlignment(b),\n }),\n /** Renderer quality hint; above 32 switches to multi-tap accumulation. */\n samples: param.number({ default: 16, min: 1, step: 1, hidden: true }),\n /** Blur-length multiplier. */\n strength: param.number({ default: 1, min: 0, max: 2, control: \"slider\" }),\n /** Per-axis velocity scale. */\n axis: param.axis({\n default: \"both\",\n optionsLabel: \"effectAxis\",\n lerp: (a, b, t) => lerpVector2(resolveEffectAxis(a), resolveEffectAxis(b), t),\n }),\n },\n});\n\nexport const motionBlurEffect: EffectData<MotionBlurEffect> = effectDataOf(motionBlurSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"oil-paint.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/oil-paint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAiB/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,MAAM;IACb,yCAAyC;IACzC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,yDAAyD;QACzD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC1G;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 * Kuwahara filter — the painterly one.\r\n *\r\n * Each pixel looks at four overlapping quadrant windows and takes the mean of\r\n * whichever is *flattest*. Averaging within a region but never across a boundary\r\n * is what makes it read as brushwork: flat areas smooth into strokes while edges\r\n * stay crisp, where a plain blur would soften both.\r\n *\r\n * Cost grows with the square of `radius` — four windows of `(radius+1)²` samples\r\n * each — so this is the most expensive effect in the set by a wide margin.\r\n */\r\nexport interface OilPaintEffect extends ModedEffect, EffectFields<typeof oilPaintSpec.params> {\r\n type: \"oilPaint\";\r\n}\r\n\r\n/** The {@link OilPaintEffect} spec: its parameters, defaults and ranges. */\r\nexport const oilPaintSpec = defineEffect({\r\n type: \"oilPaint\",\r\n group: \"blur\",\r\n // Reads a large neighbourhood per pixel.\r\n surface: \"shader\",\r\n scalar: \"radius\",\r\n neutral: { radius: 0 },\r\n params: {\r\n /** Window radius in pixels — brush size, capped at 6. */\r\n radius: param.number({ default: 3, min: 0, max: 6, step: 1, unit: \"px\", label: \"brush\", inline: true }),\r\n },\r\n});\r\n\r\nexport const oilPaintEffect: EffectData<OilPaintEffect> = effectDataOf(oilPaintSpec);\r\n"]}
1
+ {"version":3,"file":"oil-paint.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/oil-paint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAiB/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,MAAM;IACb,yCAAyC;IACzC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,yDAAyD;QACzD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC1G;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 * Kuwahara filter — the painterly one.\n *\n * Each pixel looks at four overlapping quadrant windows and takes the mean of\n * whichever is *flattest*. Averaging within a region but never across a boundary\n * is what makes it read as brushwork: flat areas smooth into strokes while edges\n * stay crisp, where a plain blur would soften both.\n *\n * Cost grows with the square of `radius` — four windows of `(radius+1)²` samples\n * each — so this is the most expensive effect in the set by a wide margin.\n */\nexport interface OilPaintEffect extends ModedEffect, EffectFields<typeof oilPaintSpec.params> {\n type: \"oilPaint\";\n}\n\n/** The {@link OilPaintEffect} spec: its parameters, defaults and ranges. */\nexport const oilPaintSpec = defineEffect({\n type: \"oilPaint\",\n group: \"blur\",\n // Reads a large neighbourhood per pixel.\n surface: \"shader\",\n scalar: \"radius\",\n neutral: { radius: 0 },\n params: {\n /** Window radius in pixels — brush size, capped at 6. */\n radius: param.number({ default: 3, min: 0, max: 6, step: 1, unit: \"px\", label: \"brush\", inline: true }),\n },\n});\n\nexport const oilPaintEffect: EffectData<OilPaintEffect> = effectDataOf(oilPaintSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"outline.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/outline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAqB/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,0EAA0E;IAC1E,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,gCAAgC;QAChC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrE,mBAAmB;QACnB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QACxC,kDAAkD;QAClD,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAA6B,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC;KAC/I;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 * Where the outline sits relative to the node's silhouette — the same three\r\n * choices Figma and Illustrator offer for a stroke:\r\n *\r\n * - `\"outside\"` grows outward from the edge, leaving the content untouched.\r\n * - `\"inside\"` eats inward, so the node's footprint never changes.\r\n * - `\"center\"` straddles the edge, half of `width` on each side.\r\n */\r\nexport type OutlinePosition = \"outside\" | \"center\" | \"inside\";\r\n\r\n/**\r\n * A coloured band traced around the node's silhouette — the alpha outline\r\n * (a.k.a. \"stroke\" in Figma) that geometry strokes can't give you when the\r\n * silhouette comes from text, an image's alpha, or a whole subtree.\r\n */\r\nexport interface OutlineEffect extends ModedEffect, EffectFields<typeof outlineSpec.params> {\r\n type: \"outline\";\r\n}\r\n\r\n/** The {@link OutlineEffect} spec: its parameters, defaults and ranges. */\r\nexport const outlineSpec = defineEffect({\r\n type: \"outline\",\r\n group: \"stylize\",\r\n // Reads a ring of neighbouring texels to dilate/erode the source's alpha.\r\n surface: \"shader\",\r\n scalar: \"width\",\r\n onlyOn: \"foreground\",\r\n neutral: { width: 0 },\r\n params: {\r\n /** Band thickness in pixels. */\r\n width: param.number({ default: 4, min: 0, unit: \"px\", inline: true }),\r\n /** Band colour. */\r\n color: param.color({ default: \"black\" }),\r\n /** Which side of the edge the band grows from. */\r\n position: param.choice([\"outside\", \"center\", \"inside\"] satisfies OutlinePosition[], { default: \"outside\", optionsLabel: \"outlinePosition\" }),\r\n },\r\n});\r\n\r\nexport const outlineEffect: EffectData<OutlineEffect> = effectDataOf(outlineSpec);\r\n"]}
1
+ {"version":3,"file":"outline.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/outline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAqB/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,0EAA0E;IAC1E,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;IACrB,MAAM,EAAE;QACJ,gCAAgC;QAChC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrE,mBAAmB;QACnB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QACxC,kDAAkD;QAClD,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAA6B,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC;KAC/I;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 * Where the outline sits relative to the node's silhouette — the same three\n * choices Figma and Illustrator offer for a stroke:\n *\n * - `\"outside\"` grows outward from the edge, leaving the content untouched.\n * - `\"inside\"` eats inward, so the node's footprint never changes.\n * - `\"center\"` straddles the edge, half of `width` on each side.\n */\nexport type OutlinePosition = \"outside\" | \"center\" | \"inside\";\n\n/**\n * A coloured band traced around the node's silhouette — the alpha outline\n * (a.k.a. \"stroke\" in Figma) that geometry strokes can't give you when the\n * silhouette comes from text, an image's alpha, or a whole subtree.\n */\nexport interface OutlineEffect extends ModedEffect, EffectFields<typeof outlineSpec.params> {\n type: \"outline\";\n}\n\n/** The {@link OutlineEffect} spec: its parameters, defaults and ranges. */\nexport const outlineSpec = defineEffect({\n type: \"outline\",\n group: \"stylize\",\n // Reads a ring of neighbouring texels to dilate/erode the source's alpha.\n surface: \"shader\",\n scalar: \"width\",\n onlyOn: \"foreground\",\n neutral: { width: 0 },\n params: {\n /** Band thickness in pixels. */\n width: param.number({ default: 4, min: 0, unit: \"px\", inline: true }),\n /** Band colour. */\n color: param.color({ default: \"black\" }),\n /** Which side of the edge the band grows from. */\n position: param.choice([\"outside\", \"center\", \"inside\"] satisfies OutlinePosition[], { default: \"outside\", optionsLabel: \"outlinePosition\" }),\n },\n});\n\nexport const outlineEffect: EffectData<OutlineEffect> = effectDataOf(outlineSpec);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pixelate.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/pixelate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoB/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,QAAQ;IAChB,8EAA8E;IAC9E,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;IACzB,MAAM,EAAE;QACJ,qDAAqD;QACrD,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;QAClH,mEAAmE;QACnE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAChD;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 * After Effects-style Mosaic / pixelate.\r\n *\r\n * `blocks` is the *number of blocks* across the node on each axis, exactly like\r\n * AE's Mosaic \"Horizontal Blocks\" / \"Vertical Blocks\". A count equal to the\r\n * node's pixel dimension on that axis leaves the image untouched (one block per\r\n * pixel); lower counts give larger, coarser blocks. For a 1920×1080 image,\r\n * `{ x: 1920, y: 1080 }` is pristine and `{ x: 200, y: 180 }` is heavily\r\n * pixelated.\r\n *\r\n * `sharpColors` mirrors AE's \"Sharp Colors\" checkbox: when `true` each block is\r\n * a single solid colour with hard edges (nearest-neighbour); when `false` the\r\n * block colours are smoothly interpolated between centres (linear).\r\n */\r\nexport interface PixelateEffect extends ModedEffect, EffectFields<typeof pixelateSpec.params> {\r\n type: \"pixelate\";\r\n}\r\n\r\n/** The {@link PixelateEffect} spec: its parameters, defaults and ranges. */\r\nexport const pixelateSpec = defineEffect({\r\n type: \"pixelate\",\r\n group: \"stylize\",\r\n scalar: \"blocks\",\r\n // Resolution-relative: inert only while a block is finer than the pixel grid.\r\n neutral: { blocks: 1920 },\r\n params: {\r\n /** Block count per axis; a bare number sets both. */\r\n blocks: param.vec2({ default: 1, fromNumber: \"both\", required: true, min: 1, step: 1, initial: { x: 64, y: 64 } }),\r\n /** AE \"Sharp Colors\": solid blocks (true) vs. smoothly blended. */\r\n sharpColors: param.boolean({ default: true }),\r\n },\r\n});\r\n\r\nexport const pixelateEffect: EffectData<PixelateEffect> = effectDataOf(pixelateSpec);\r\n"]}
1
+ {"version":3,"file":"pixelate.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/pixelate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAoB/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,QAAQ;IAChB,8EAA8E;IAC9E,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;IACzB,MAAM,EAAE;QACJ,qDAAqD;QACrD,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;QAClH,mEAAmE;QACnE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAChD;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 * After Effects-style Mosaic / pixelate.\n *\n * `blocks` is the *number of blocks* across the node on each axis, exactly like\n * AE's Mosaic \"Horizontal Blocks\" / \"Vertical Blocks\". A count equal to the\n * node's pixel dimension on that axis leaves the image untouched (one block per\n * pixel); lower counts give larger, coarser blocks. For a 1920×1080 image,\n * `{ x: 1920, y: 1080 }` is pristine and `{ x: 200, y: 180 }` is heavily\n * pixelated.\n *\n * `sharpColors` mirrors AE's \"Sharp Colors\" checkbox: when `true` each block is\n * a single solid colour with hard edges (nearest-neighbour); when `false` the\n * block colours are smoothly interpolated between centres (linear).\n */\nexport interface PixelateEffect extends ModedEffect, EffectFields<typeof pixelateSpec.params> {\n type: \"pixelate\";\n}\n\n/** The {@link PixelateEffect} spec: its parameters, defaults and ranges. */\nexport const pixelateSpec = defineEffect({\n type: \"pixelate\",\n group: \"stylize\",\n scalar: \"blocks\",\n // Resolution-relative: inert only while a block is finer than the pixel grid.\n neutral: { blocks: 1920 },\n params: {\n /** Block count per axis; a bare number sets both. */\n blocks: param.vec2({ default: 1, fromNumber: \"both\", required: true, min: 1, step: 1, initial: { x: 64, y: 64 } }),\n /** AE \"Sharp Colors\": solid blocks (true) vs. smoothly blended. */\n sharpColors: param.boolean({ default: true }),\n },\n});\n\nexport const pixelateEffect: EffectData<PixelateEffect> = effectDataOf(pixelateSpec);\n"]}