Update
This commit is contained in:
@@ -12,6 +12,7 @@ import { useElementTransform } from './video-preview/video-preview-element-trans
|
||||
import { getImageSource, getTextFontStyle } from './video-preview/video-preview-utils';
|
||||
|
||||
const VideoPreview = ({
|
||||
watermarked,
|
||||
// Dimensions
|
||||
dimensions,
|
||||
|
||||
@@ -242,6 +243,27 @@ const VideoPreview = ({
|
||||
return null;
|
||||
})}
|
||||
|
||||
{/* Watermark - only show when watermarked is true */}
|
||||
{watermarked && (
|
||||
<Text
|
||||
text="MEMEAIGEN.COM"
|
||||
x={dimensions.width / 2}
|
||||
y={dimensions.height / 2 + dimensions.height * 0.2}
|
||||
fontSize={20}
|
||||
fontFamily="Bungee"
|
||||
fill="white"
|
||||
stroke="black"
|
||||
strokeWidth={2}
|
||||
opacity={0.5}
|
||||
align="center"
|
||||
verticalAlign="middle"
|
||||
offsetX={90} // Approximate half-width to center the text
|
||||
offsetY={5} // Approximate half-height to center the text
|
||||
draggable={false}
|
||||
listening={false} // Prevents any mouse interactions
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Guide Lines Layer */}
|
||||
{guideLines.showVertical && (
|
||||
<Line
|
||||
|
||||
Reference in New Issue
Block a user