This commit is contained in:
ct
2025-06-17 21:25:33 +08:00
parent 886d20a793
commit f61f95d6d1
4 changed files with 175 additions and 23 deletions

View File

@@ -476,9 +476,11 @@ const VideoPreview = ({
fontSize={element.fontSize}
fontStyle={getTextFontStyle(element)}
fontFamily={element.fontFamily || 'Arial'}
fill={element.fill}
stroke={element.stroke}
strokeWidth={element.strokeWidth}
fill={element.fill || '#ffffff'}
stroke={element.strokeWidth > 0 ? element.stroke || '#000000' : undefined}
strokeWidth={element.strokeWidth || 0}
fillAfterStrokeEnabled={true}
strokeScaleEnabled={false}
rotation={element.rotation || 0}
// Center the text horizontally
align="center"