Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

TL7g: FilterStep's tag and attrs described, the manual regenerated with them

shinyobjectzd3762acbf1b8
diff --git a/docs/manual/reference/sdk/editor.md b/docs/manual/reference/sdk/editor.md
index dd118663..e201343b 100644
--- a/docs/manual/reference/sdk/editor.md
+++ b/docs/manual/reference/sdk/editor.md
@@ -868,8 +868,8 @@ One step of an SVG filter: its tag and its attributes, so React and the DOM can
| Field | Type | What it is |
| --- | --- | --- |
-| `tag` (required) | `"feComponentTransfer" \| "feFuncR" \| "feFuncG" \| "feFuncB" \| "feColorMatrix" \| "feConvol…` | – |
-| `attrs` (required) | `Record<string, string>` | – |
+| `tag` (required) | `"feComponentTransfer" \| "feFuncR" \| "feFuncG" \| "feFuncB" \| "feColorMatrix" \| "feConvol…` | the SVG filter primitive (or a component transfer's function) it is |
+| `attrs` (required) | `Record<string, string>` | its attributes as SVG writes them (in, in2, result, values,...) |
| `children` | `FilterStep[]` | a component transfer's functions |
### `Frames`
diff --git a/sdk/video/src/adjust.ts b/sdk/video/src/adjust.ts
index 3cd181cf..13342394 100644
--- a/sdk/video/src/adjust.ts
+++ b/sdk/video/src/adjust.ts
@@ -57,7 +57,9 @@ export function toneAt(a: Adjust, v: number): number {
/** One step of an SVG filter: its tag and its attributes, so React and the DOM can each make it. */
export interface FilterStep {
+ /** the SVG filter primitive (or a component transfer's function) it is */
tag: "feComponentTransfer" | "feFuncR" | "feFuncG" | "feFuncB" | "feColorMatrix" | "feConvolveMatrix" | "feTurbulence" | "feComposite";
+ /** its attributes as SVG writes them (in, in2, result, values, ...) */
attrs: Record<string, string>;
/** a component transfer's functions */
children?: FilterStep[];