Skip to content

🎥 Make videos programmatically with React

just top left is missing

JonnyBurger68279f2f82fc
diff --git a/packages/example/src/TikTokTextbox/svg.ts b/packages/example/src/TikTokTextbox/svg.ts
index 83d71bd50c..8ba8536ee9 100644
--- a/packages/example/src/TikTokTextbox/svg.ts
+++ b/packages/example/src/TikTokTextbox/svg.ts
@@ -100,11 +100,29 @@ export const makeSvg = ({
xOffset = maxWidth - (cornerRounding.width + horizontalPadding * 2);
}
- instructions.push({
- type: 'L',
- x: xOffset,
- y: yOffset,
- });
+ if (cornerRounding.bottomLeft) {
+ instructions.push({
+ type: 'L',
+ x: xOffset + CORNER_RADIUS,
+ y: yOffset,
+ });
+ instructions.push({
+ type: 'C',
+ cp1x: xOffset,
+ cp1y: yOffset,
+ cp2x: xOffset,
+ cp2y: yOffset,
+ x: xOffset,
+ y: yOffset - CORNER_RADIUS,
+ });
+ } else {
+ instructions.push({
+ type: 'L',
+ x: xOffset,
+ y: yOffset,
+ });
+ }
+
instructions.push({
type: 'L',
x: xOffset,