Fix: 캔버스 사이즈 수정

This commit is contained in:
jhynsoo 2024-09-25 14:17:47 +09:00
parent e297980ab3
commit d6f47abb54

View File

@ -20,7 +20,7 @@ export default function ImageCanvas() {
const selectedLabelId = useCanvasStore((state) => state.selectedLabelId);
const setSelectedLabelId = useCanvasStore((state) => state.setSelectedLabelId);
const sidebarSize = useCanvasStore((state) => state.sidebarSize);
const stageWidth = window.innerWidth * ((100 - sidebarSize) / 100) - 280;
const stageWidth = window.innerWidth * ((100 - sidebarSize) / 100) - 200;
const stageHeight = window.innerHeight - 64;
const stageRef = useRef<Konva.Stage>(null);
const dragLayerRef = useRef<Konva.Layer>(null);