Skip to content

🎥 Make videos programmatically with React

new card

Jonny Burgerd0b5e1a6fdff
diff --git a/packages/docs/docs/layout-utils/fill-text-box.md b/packages/docs/docs/layout-utils/fill-text-box.md
index 35c34800f6..4b0ca5368f 100644
--- a/packages/docs/docs/layout-utils/fill-text-box.md
+++ b/packages/docs/docs/layout-utils/fill-text-box.md
@@ -62,10 +62,10 @@ Same as CSS style `font-weight`.
The add method returns an object with two properties:
-+ `exceedsBox`:
- _Boolean_, whether adding the word would cause the text to exceed the width of the box.
-+ `newLine`:
- _Boolean_, whether adding the word would require starting a new line in the text box.
+- `exceedsBox`:
+ _Boolean_, whether adding the word would cause the text to exceed the width of the box.
+- `newLine`:
+ _Boolean_, whether adding the word would require starting a new line in the text box.
## Example
@@ -75,14 +75,14 @@ import { fillTextBox } from "@remotion/layout-utils";
const fontFamily = "Arial";
const fontSize = 12;
-const box = fillTextBox({maxLines: 4, maxBoxWidth: 100})
-box.add({text: 'Hello', fontFamily, fontSize}) // {exceedsBox: false, newLine: false}
-box.add({text: 'World!', fontFamily, fontSize}) // {exceedsBox: false, newLine: false}
+const box = fillTextBox({ maxLines: 4, maxBoxWidth: 100 });
+box.add({ text: "Hello", fontFamily, fontSize }); // {exceedsBox: false, newLine: false}
+box.add({ text: "World!", fontFamily, fontSize }); // {exceedsBox: false, newLine: false}
// Doesn't fit on the previous line anymore
-box.add({text: 'How', fontFamily, fontSize}) // {exceedsBox: false, newLine: true}
+box.add({ text: "How", fontFamily, fontSize }); // {exceedsBox: false, newLine: true}
// ...
// Doesn't fix in the box anymore
-box.add({text: 'the end', fontFamily, fontSize}) // {exceedsBox: true, newLine: false}
+box.add({ text: "the end", fontFamily, fontSize }); // {exceedsBox: true, newLine: false}
```
## See also
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 9ee8431ad1..254ad294cd 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -335,6 +335,13 @@ export const articles = [
compId: "articles-docs-cloudrun-generate-env",
crumb: "Cloud Run",
},
+ {
+ id: "getserviceinfo",
+ title: "getServiceInfo()",
+ relativePath: "docs/cloudrun/getServiceinfo.md",
+ compId: "articles-docs-cloudrun-getServiceinfo",
+ crumb: "Cloud Run API",
+ },
{
id: "getorcreatebucket",
title: "getOrCreateBucket()",
@@ -349,13 +356,6 @@ export const articles = [
compId: "articles-docs-cloudrun-getregions",
crumb: "Cloud Run API",
},
- {
- id: "getserviceinfo",
- title: "getServiceInfo()",
- relativePath: "docs/cloudrun/getServiceinfo.md",
- compId: "articles-docs-cloudrun-getServiceinfo",
- crumb: "Cloud Run API",
- },
{
id: "getservices",
title: "getServices()",
diff --git a/packages/docs/static/generated/articles-docs-layout-utils-fill-text-box.png b/packages/docs/static/generated/articles-docs-layout-utils-fill-text-box.png
index bf867c2d24..b2121fd12b 100644
Binary files a/packages/docs/static/generated/articles-docs-layout-utils-fill-text-box.png and b/packages/docs/static/generated/articles-docs-layout-utils-fill-text-box.png differ