소스 검색

update default canvas size

AykutSarac 2 년 전
부모
커밋
9a62707372
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/Graph/index.tsx

+ 2 - 2
src/components/Graph/index.tsx

@@ -99,8 +99,8 @@ export const Graph: React.FC<GraphProps & CanvasContainerProps> = ({
           <Canvas
             nodes={nodes}
             edges={edges}
-            maxWidth={size.width}
-            maxHeight={size.height}
+            maxWidth={size.width + 100}
+            maxHeight={size.height + 100}
             direction={layout}
             key={layout}
             onCanvasClick={onCanvasClick}