🎥 Make videos programmatically with React
remotion: Fix CanvasImage docs tags, sidebar order and effect test typing
Jonny Burger6dccd06b00ab
diff --git a/packages/core/src/test/canvas-image.test.tsx b/packages/core/src/test/canvas-image.test.tsxindex c621c415d4..f7db6af255 100644--- a/packages/core/src/test/canvas-image.test.tsx+++ b/packages/core/src/test/canvas-image.test.tsx@@ -147,6 +147,7 @@ test('<CanvasImage> runs static images through an effect chain', async () => {const definition: EffectDefinition<unknown> = {type: 'test-effect',label: 'Test effect',+ documentationLink: null,backend: '2d',calculateKey: () => 'test-effect',setup: () => ({}),diff --git a/packages/docs/docs/canvasimage.mdx b/packages/docs/docs/canvasimage.mdxindex 758da9dd34..f5b6ec030e 100644--- a/packages/docs/docs/canvasimage.mdx+++ b/packages/docs/docs/canvasimage.mdx@@ -59,6 +59,10 @@ An array of Remotion [effects](/docs/effects/api) to apply to the image after itA class name to apply to the `<canvas>` element.+### `id?`++The HTML `id` attribute to apply to the `<canvas>` element.+### `style?`Inline styles to apply to the `<canvas>` element.@@ -68,22 +72,22 @@ Inline styles to apply to the `<canvas>` element.Called when the image cannot be loaded, decoded, or drawn after all retries are exhausted.If omitted, [`cancelRender()`](/docs/cancel-render) is called.-### `pauseWhenLoading?`+### `pauseWhenLoading?`<AvailableFrom v="4.0.467" />If `true`, the [Player](/docs/player) will pause playback while the image is loading. Default `false`.Has no effect during rendering (rendering always waits via `delayRender()`).-### `maxRetries?`+### `maxRetries?`<AvailableFrom v="4.0.467" />The number of times to retry loading the image after a failure before giving up. Default `2`.Retries use [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff): the first retry waits 1 second, the second 2 seconds, the third 4 seconds, and so on.-### `delayRenderRetries?`+### `delayRenderRetries?`<AvailableFrom v="4.0.467" />How many times [`delayRender()`](/docs/delay-render) may retry before the render times out.Passed directly to the `retries` option of `delayRender()`.-### `delayRenderTimeoutInMilliseconds?`+### `delayRenderTimeoutInMilliseconds?`<AvailableFrom v="4.0.467" />The timeout in milliseconds for each [`delayRender()`](/docs/delay-render) call.Passed directly to the `timeoutInMilliseconds` option of `delayRender()`.diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex 96f8077ff9..78b126d64a 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -144,6 +144,7 @@ const sidebars: SidebarsConfig = {'artifact','calculate-metadata','cancel-render',+ 'canvasimage','composition','continue-render','delay-render',@@ -158,7 +159,6 @@ const sidebars: SidebarsConfig = {'remotion/html-in-canvas','iframe','img',- 'canvasimage','interpolate-colors','interpolate','loop',