Update
This commit is contained in:
@@ -60,6 +60,7 @@ const sampleTimelineElements = [
|
||||
x: 50,
|
||||
y: 600,
|
||||
fontSize: 24,
|
||||
fontWeight: 'bold', // ADD THIS LINE
|
||||
fill: 'white',
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
@@ -75,6 +76,7 @@ const sampleTimelineElements = [
|
||||
x: 50,
|
||||
y: 650,
|
||||
fontSize: 20,
|
||||
fontWeight: 'bold', // ADD THIS LINE
|
||||
fill: 'yellow',
|
||||
stroke: 'red',
|
||||
strokeWidth: 2,
|
||||
|
||||
@@ -445,6 +445,8 @@ const VideoPreview = ({
|
||||
x={element.x}
|
||||
y={element.y}
|
||||
fontSize={element.fontSize}
|
||||
fontStyle={element.fontWeight === 'bold' || element.fontWeight === 700 ? 'bold' : 'normal'} // ADD THIS LINE
|
||||
fontFamily="Arial"
|
||||
fill={element.fill}
|
||||
stroke={element.stroke}
|
||||
strokeWidth={element.strokeWidth}
|
||||
|
||||
Reference in New Issue
Block a user