🎥 Make videos programmatically with React
fix
Jonny Burgere700d2b09d0c
diff --git a/packages/docs/docs/layout-utils/measure-text.mdx b/packages/docs/docs/layout-utils/measure-text.mdxindex 522ac78f30..f7c28e8d0b 100644--- a/packages/docs/docs/layout-utils/measure-text.mdx+++ b/packages/docs/docs/layout-utils/measure-text.mdx@@ -1,7 +1,7 @@---image: /generated/articles-docs-layout-utils-measure-text.pngtitle: measureText()-crumb: "@remotion/layout-utils"+crumb: '@remotion/layout-utils'---_Part of the [`@remotion/layout-utils`](/docs/layout-utils) package._@@ -11,13 +11,13 @@ Calculates the width and height of specified text to be used for layout calculat## Example```tsx twoslash-import { measureText } from "@remotion/layout-utils";+import {measureText} from '@remotion/layout-utils';-const text = "remotion";-const fontFamily = "Arial";-const fontWeight = "500";+const text = 'remotion';+const fontFamily = 'Arial';+const fontWeight = '500';const fontSize = 12;-const letterSpacing = "1px";+const letterSpacing = '1px';measureText({text,@@ -62,7 +62,7 @@ Same as CSS style `font-weight`_string_-Same as CSS style `font-spacing`.+Same as CSS style `letter-spacing`.### `fontVariantNumeric`<AvailableFrom v="4.0.57"/>diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 285257c806..0aa8cc6416 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -723,8 +723,8 @@ importers:specifier: ^4.16.0version: 4.16.0next:- specifier: 14.2.13+ specifier: 14.2.15plyr:specifier: ^3.7.3version: 3.7.3@@ -1613,7 +1613,7 @@ importers:version: link:../preloadnext:specifier: 14.2.15- version: 14.2.15([email protected])([email protected])react:specifier: 19.0.0version: 19.0.0@@ -10555,10 +10555,6 @@ packages:three: 0.171.0dev: false- /@next/[email protected]:- resolution: {integrity: sha512-s3lh6K8cbW1h5Nga7NNeXrbe0+2jIIYK9YaA9T7IufDWnZpozdFUp6Hf0d5rNWUKu4fEuSX2rCKlGjCrtylfDw==}- dev: false-/@next/[email protected]:resolution: {integrity: sha512-S1qaj25Wru2dUpcIZMjxeMVSwkt8BK4dmWHHiBuRstcIyOsMapqT4A4jSB6onvqeygkSSmOkyny9VVx8JIGamQ==}dev: false@@ -10573,15 +10569,6 @@ packages:fast-glob: 3.3.1dev: true- /@next/[email protected]:- resolution: {integrity: sha512-IkAmQEa2Htq+wHACBxOsslt+jMoV3msvxCn0WFSfJSkv/scy+i/EukBKNad36grRxywaXUYJc9mxEGkeIs8Bzg==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [darwin]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-Rvh7KU9hOUBnZ9TJ28n2Oa7dD9cvDBKua9IKx7cfQQ0GoYUwg9ig31O2oMwH3wm+pE3IkAQ67ZobPfEgurPZIA==}engines: {node: '>= 10'}@@ -10600,15 +10587,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-Dv1RBGs2TTjkwEnFMVL5XIfJEavnLqqwYSD6LXgTPdEy/u6FlSrLBSSfe1pcfqhFEXRAgVL3Wpjibe5wXJzWog==}- engines: {node: '>= 10'}- cpu: [x64]- os: [darwin]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-5TGyjFcf8ampZP3e+FyCax5zFVHi+Oe7sZyaKOngsqyaNEpOgkKB3sqmymkZfowy3ufGA/tUgDPPxpQx931lHg==}engines: {node: '>= 10'}@@ -10627,15 +10605,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-yB1tYEFFqo4ZNWkwrJultbsw7NPAAxlPXURXioRl9SdW6aIefOLS+0TEsKrWBtbJ9moTDgU3HRILL6QBQnMevg==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-3Bwv4oc08ONiQ3FiOLKT72Q+ndEMyLNsc/D3qnLMbtUYTQAmkx9E/JRu0DBpHxNddBmNT5hxz1mYBphJ3mfrrw==}engines: {node: '>= 10'}@@ -10654,15 +10623,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-v5jZ/FV/eHGoWhMKYrsAweQ7CWb8xsWGM/8m1mwwZQ/sutJjoFaXchwK4pX8NqwImILEvQmZWyb8pPTcP7htWg==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-k5xf/tg1FBv/M4CMd8S+JL3uV9BnnRmoe7F+GWC3DxkTCD9aewFRH1s5rJ1zkzDa+Do4zyN8qD0N8c84Hu96FQ==}engines: {node: '>= 10'}@@ -10681,15 +10641,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-aVc7m4YL7ViiRv7SOXK3RplXzOEe/qQzRA5R2vpXboHABs3w8vtFslGTz+5tKiQzWUmTmBNVW0UQdhkKRORmGA==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-kE6q38hbrRbKEkkVn62reLXhThLRh6/TvgSP56GkFNhU22TbIrQDEMrO7j0IcQHcew2wfykq8lZyHFabz0oBrA==}engines: {node: '>= 10'}@@ -10708,15 +10659,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-4wWY7/OsSaJOOKvMsu1Teylku7vKyTuocvDLTZQq0TYv9OjiYYWt63PiE1nTuZnqQ4RPvME7Xai+9enoiN0Wrg==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-PZ5YE9ouy/IdO7QVJeIcyLn/Rc4ml9M2G4y3kCM9MNf1YKvFY4heg3pVa/jQbMro+tP6yc4G2o9LjAz1zxD7tQ==}engines: {node: '>= 10'}@@ -10735,15 +10677,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-uP1XkqCqV2NVH9+g2sC7qIw+w2tRbcMiXFEbMihkQ8B1+V6m28sshBwAB0SDmOe0u44ne1vFU66+gx/28RsBVQ==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [win32]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-2raR16703kBvYEQD9HNLyb0/394yfqzmIeyp2nDzcPV4yPjqNUG3ohX6jX00WryXz6s1FXpVhsCo3i+g4RUX+g==}engines: {node: '>= 10'}@@ -10762,15 +10695,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-V26ezyjPqQpDBV4lcWIh8B/QICQ4v+M5Bo9ykLN+sqeKKBxJVDpEc6biDVyluTXTC40f5IqCU0ttth7Es2ZuMw==}- engines: {node: '>= 10'}- cpu: [ia32]- os: [win32]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-fyTE8cklgkyR1p03kJa5zXEaZ9El+kDNM5A+66+8evQS5e/6v0Gk28LqA0Jet8gKSOyP+OTm/tJHzMlGdQerdQ==}engines: {node: '>= 10'}@@ -10780,15 +10704,6 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-WwzOEAFBGhlDHE5Z73mNU8CO8mqMNLqaG+AO9ETmzdCQlJhVtWZnOl2+rqgVQS+YHunjOWptdFmNfbpwcUuEsw==}- engines: {node: '>= 10'}- cpu: [x64]- os: [win32]- requiresBuild: true- dev: false- optional: true-/@next/[email protected]:resolution: {integrity: sha512-SzqGbsLsP9OwKNUG9nekShTwhj6JSB9ZLMWQ8g1gG6hdE5gQLncbnbymrwy2yVmH9nikSLYRYxYMFu78Ggp7/g==}engines: {node: '>= 10'}@@ -23585,49 +23500,7 @@ packages:resolution: {integrity: sha512-mc/caHeUcdjnC/boPWJefDr4KUIWQNv+tlnFnJd38QMou86QtxQzBJfxgGRzvx8jazYRqrVlaHarfO72uNxPOg==}dev: false- resolution: {integrity: sha512-BseY9YNw8QJSwLYD7hlZzl6QVDoSFHL/URN5K64kVEVpCsSOWeyjbIGK+dZUaRViHTaMQX8aqmnn0PHBbGZezg==}- engines: {node: '>=18.17.0'}- hasBin: true- peerDependencies:- '@opentelemetry/api': ^1.1.0- '@playwright/test': ^1.41.2- react: ^18.2.0- react-dom: ^18.2.0- sass: ^1.3.0- peerDependenciesMeta:- '@opentelemetry/api':- optional: true- '@playwright/test':- optional: true- sass:- optional: true- dependencies:- '@next/env': 14.2.13- '@swc/helpers': 0.5.5- busboy: 1.6.0- caniuse-lite: 1.0.30001636- graceful-fs: 4.2.11- postcss: 8.4.31- react: 19.0.0- react-dom: 19.0.0([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])- optionalDependencies:- '@next/swc-darwin-arm64': 14.2.13- '@next/swc-darwin-x64': 14.2.13- '@next/swc-linux-arm64-gnu': 14.2.13- '@next/swc-linux-arm64-musl': 14.2.13- '@next/swc-linux-x64-gnu': 14.2.13- '@next/swc-linux-x64-musl': 14.2.13- '@next/swc-win32-arm64-msvc': 14.2.13- '@next/swc-win32-ia32-msvc': 14.2.13- '@next/swc-win32-x64-msvc': 14.2.13- transitivePeerDependencies:- - '@babel/core'- - babel-plugin-macros- dev: false-resolution: {integrity: sha512-h9ctmOokpoDphRvMGnwOJAedT6zKhwqyZML9mDtspgf4Rh3Pn7UTYKqePNoDvhsWBAO5GoPNYshnAUGIazVGmw==}engines: {node: '>=18.17.0'}hasBin: true