base load viewer

This commit is contained in:
hamid zarghami
2026-01-07 09:25:59 +03:30
parent a4861eab9b
commit 9479a3425b
9 changed files with 1109 additions and 83 deletions
@@ -99,10 +99,6 @@ const VideoShape = ({
}
};
if (!image) {
return null;
}
return (
<>
<Group
@@ -130,14 +126,25 @@ const VideoShape = ({
strokeWidth={isSelected ? 3 : (obj.strokeWidth ?? 0)}
onClick={handleGroupClick}
/>
<KonvaImage
x={0}
y={0}
width={containerWidth}
height={containerHeight}
image={image}
onClick={handleGroupClick}
/>
{image ? (
<KonvaImage
x={0}
y={0}
width={containerWidth}
height={containerHeight}
image={image}
onClick={handleGroupClick}
/>
) : (
<Rect
x={0}
y={0}
width={containerWidth}
height={containerHeight}
fill="#1a1a1a"
onClick={handleGroupClick}
/>
)}
<Group
name="playButton"
onClick={handlePlayClick}