This commit is contained in:
ct
2025-06-21 09:13:23 +08:00
parent db10fc3f1c
commit 8e58f85860
39 changed files with 684 additions and 181 deletions

View File

@@ -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