🎥 Make videos programmatically with React
Update svg.ts
JonnyBurger624ec9fa8398
diff --git a/packages/example/src/TikTokTextbox/svg.ts b/packages/example/src/TikTokTextbox/svg.tsindex f8a70a39b0..a2a84d4d4a 100644--- a/packages/example/src/TikTokTextbox/svg.ts+++ b/packages/example/src/TikTokTextbox/svg.ts@@ -1,6 +1,8 @@import {Instruction, serializeInstructions} from '@remotion/paths';import {CornerRounding} from './get-corner-roundings';+const CORNER_RADIUS = 30;+export const makeSvg = ({cornerRoundings,textAlign,@@ -35,11 +37,32 @@ export const makeSvg = ({y: yOffset,});}- instructions.push({- type: 'L',- x: xOffset + cornerRounding.width + horizontalPadding * 2,- y: yOffset,- });+ if (cornerRounding.topRight) {+ instructions.push({+ type: 'L',+ x:+ xOffset ++ cornerRounding.width ++ horizontalPadding * 2 -+ CORNER_RADIUS,+ y: yOffset,+ });+ instructions.push({+ type: 'C',+ cp1x: xOffset + cornerRounding.width + horizontalPadding * 2,+ cp1y: yOffset,+ cp2x: xOffset + cornerRounding.width + horizontalPadding * 2,+ cp2y: yOffset,+ x: xOffset + cornerRounding.width + horizontalPadding * 2,+ y: yOffset + CORNER_RADIUS,+ });+ } else {+ instructions.push({+ type: 'L',+ x: xOffset + cornerRounding.width + horizontalPadding * 2,+ y: yOffset,+ });+ }instructions.push({type: 'L',